Well when it comes to formatting your content using CSS, there is no “proper” way to do this, but there are plenty of best practices. You can try this:
First, remove the table, and have all of your images in code, similar to this:
<a href="#"><img src="pic.gif" alt="" /></a>
<a href="#"><img src="pic.gif" alt="" /></a>
<a href="#"><img src="pic.gif" alt="" /></a>
<a href="#"><img src="pic.gif" alt="" /></a>
Wrap those images in a div tag, with an ID attribute of whatever you choose. And also seperate those image “rows” with a <hr > tag.
<div id="portfolio">
<a href="#"><img src="pic.gif" alt="" /></a>
<a href="#"><img src="pic.gif" alt="" /></a>
<hr />
<a href="#"><img src="pic.gif" alt="" /></a>
<a href="#"><img src="pic.gif" alt="" /></a>
</div>
Now inside your CSS, select the div tag, the graphics, and make the <hr > tag invisible.
#portfolio img {
padding:1em; float:left; text-align:center;
}
#portfolio hr {
clear:both; width:450px; text-align:left;
visibility:hidden;
}
I hope this helps you somewhat.