1 reply [Last post]
atomic.argonaut
atomic.argonaut's picture
User offline. Last seen 33 weeks 3 days ago. Offline
newbie
Timezone: GMT-4
Joined: 2010-07-30
Posts: 2
Points: 4

hi. im new to css and in my zeal to learn as much of it as possible ran across an article forewarning users against the dangers of using too many divs. currently i'm doing a row of images that need to be spaced out horizontally, so that each adjacent image is roughly 5 pixels apart.

<div style="float: left; width: 1300px; margin-right: 5px;">
<img src="jimmyv.jpg">
<img src="katiekimmie.jpg">
<img src="monstrosity1.jpg">
<img src="squirks.jpg">
</div>

is it possible to space out each image with some tags i dont know about, should i create a table (also warned about), or should i create an individual div for each one.

many thanks in advance.

Verschwindende
Verschwindende's picture
User offline. Last seen 4 days 10 hours ago. Offline
rank Guru
Guru
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2256

Why not give the images a

Why not give the images a margin?

yet again.