buzzfever
06-03-2008, 11:42 PM
Hey, I'm trying to get some images to line up as in this picture(in the attachment). I don't know how to do it using a table (can't get image E to not line up with the top of image F) and I'm assuming there's a better way to do it in CSS. I tried this:
<img src="index/Case Pic.jpg" width="480" height="318" alt="Treat Case" />
<div style="position:relative; left:-167px; top:15px">
<a href="dwyd.html">
<img src="index/DWYD Icon.jpg" width="147" height="195" alt="Dine With Your Dog" /></a>
</div>
<div style="position:relative; left:0px; top:-210px">
<a href="seasonal_soon.html">
<img src="index/whats cooking.jpg" width="147" height="237" alt="What's Cooking" /></a>
</div>
<div style="position:relative; right:-167px; top:-450px">
<a href="happening_at_bakery.html">
<img src="index/happening at bakery.jpg" width="147" height="267" alt="Happening at the Bakery" /></a>
</div>
<div style="position:relative; left:-167px; top:-485px">
<a href="ice_cream_social.html">
<img src="index/ice cream social.jpg" width="147" height="225" alt="Ice Cream Social"/></a>
</div>
<div style="position:relative; left:0px; top:-700px">
<a href="dog_of_the_year_winners.html">
<img src="index/doy.jpg" width="147" height="172" alt="Betty - Dog of the Year"/></a>
</div>
It worked, but then there was just a ton of line breaks after the images - due to using the <div> tags.
Thanks.
<img src="index/Case Pic.jpg" width="480" height="318" alt="Treat Case" />
<div style="position:relative; left:-167px; top:15px">
<a href="dwyd.html">
<img src="index/DWYD Icon.jpg" width="147" height="195" alt="Dine With Your Dog" /></a>
</div>
<div style="position:relative; left:0px; top:-210px">
<a href="seasonal_soon.html">
<img src="index/whats cooking.jpg" width="147" height="237" alt="What's Cooking" /></a>
</div>
<div style="position:relative; right:-167px; top:-450px">
<a href="happening_at_bakery.html">
<img src="index/happening at bakery.jpg" width="147" height="267" alt="Happening at the Bakery" /></a>
</div>
<div style="position:relative; left:-167px; top:-485px">
<a href="ice_cream_social.html">
<img src="index/ice cream social.jpg" width="147" height="225" alt="Ice Cream Social"/></a>
</div>
<div style="position:relative; left:0px; top:-700px">
<a href="dog_of_the_year_winners.html">
<img src="index/doy.jpg" width="147" height="172" alt="Betty - Dog of the Year"/></a>
</div>
It worked, but then there was just a ton of line breaks after the images - due to using the <div> tags.
Thanks.