horizontal alignment of images
i'm trying to align a number of images horizontally so they don't reach a point where they wrap. much like jeff allen's site (see jeffphoto dot net), but without the need to click on it to enlarge as he made them all one wide image. on another forum, i was given this advice:
CSS Code:
div.pics { width:100%; overflow:auto; height:500px /* tallest picture height */ padding:10px; }
HTML Code:
<div class="pics"><img ...><img ...><!--etc--></div>
And you just place all the images between the div tags. I am pretty sure you still can't have spacing in them. So you can add this too:
Code:
img { margin:0px 5px 0px 5px; }
And now they will place themselves apart automatically.
I did the CSS and have inserted the image tags into the html, but where do I put the last part about margins? In the CSS or html. Any help would be greatly appreciated, or if there's an easier way. thanks!
|