This will put 4 columns of thumbnails 100px wide, and will just keep adding rows as necessary. CSS is very good with this type of effect, the only problem is cross-browser issues. If you give a 10px margin as i did here, you shouldn't run in to any issues. If your webpage is designed to the pixel, you will likely need browser hacks, as you would with any webpage.
Main Topics
Browse All Topics





by: themrrobertPosted on 2009-10-26 at 14:48:35ID: 25667286
I do not think you want to go with flash.
:
Set up a nice page with CSS. Have a <div> for the header, navigation, and content. If you need tables to set up your gallery, so be it, but you can also do this:
style.css:
#content {width: 410px; }
.item {float: left; width: 100px; }
Assuming you have an array like this:
$gallery = array('1001' => "pic_1001.jpg",'1002' => "pic_1002.jpg")
gallery.php
Select allOpen in new window