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

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 1 hour 29 min ago. Offline
rank Leader
Leader
Timezone: GMT-4
Joined: 2009-10-09
Posts: 751
Points: 841

Why not give the images a

Why not give the images a margin?

CSS HTML ASP.net C# Coffee