PDA

View Full Version : table alternative


ubik
01-16-2006, 08:01 PM
Hello and good day to all,

I am here wondering if anyone might know how I could go about making an alternative to an HTML table, using CSS? I am trying to make a sort of photogallery and i wanted to make a table like look for the thumbnails. The way i am currently planning to do it, is just by putting each picture in with an <img tag and just setting each individual absolute position. Is there any better way to do this? Any help is appreciated, I thank you for your time.

rlemon
01-16-2006, 08:06 PM
.image_container{
position: relative;
float: left;
height: 100px;
width: 100px;
}

<div class='image_container'><img .......></div>


all images will hug eachother and wrap to the browser.

check out http://www.rlemon.com/l-pic/ enter a folder - resize the document.

there are multiple bugs in my software i know - but your looking at the divs... ;)

ronaldb66
01-17-2006, 08:34 AM
Position: relative is not needed for floats.