You're much better off using lists for this. Here's some code I've implemented for my daughters' site:
<ul id="galleries">
<li>
<a href="http://lexie.myredmonkey.co.uk/index.php?/gallery/image_full/6/"><img src="http://lexie.myredmonkey.co.uk/img/gallery/May2010/with-daddy_thumb.jpg" class="border" width="200" height="200" border="0" title="With Daddy and his beard" /></a>
<p>With Daddy and his beard</p>
</li>
<li>
<a href="http://lexie.myredmonkey.co.uk/index.php?/gallery/image_full/8/"><img src="http://lexie.myredmonkey.co.uk/img/gallery/May2010/with-mommy_thumb.jpg" class="border" width="200" height="200" border="0" title="Mommy and Me" /></a>
<p>Mommy and Me</p>
</li>
<li>
<a href="http://lexie.myredmonkey.co.uk/index.php?/gallery/image_full/7/"><img src="http://lexie.myredmonkey.co.uk/img/gallery/May2010/with-grandad_thumb.jpg" class="border" width="200" height="200" border="0" title="With Grandad" /></a>
<p>With Grandad</p>
</li>
<li>
<a href="http://lexie.myredmonkey.co.uk/index.php?/gallery/image_full/4/"><img src="http://lexie.myredmonkey.co.uk/img/gallery/May2010/on-the-mat_thumb.jpg" class="border" width="200" height="200" border="0" title="On the mat" /></a>
<p>On the mat</p>
</li>
</ul><ul id="galleries">
<li>
<a href="http://lexie.myredmonkey.co.uk/index.php?/gallery/image_full/5/"><img src="http://lexie.myredmonkey.co.uk/img/gallery/May2010/swimsuit_thumb.jpg" class="border" width="200" height="200" border="0" title="The swimsuit edition" /></a>
<p>The swimsuit edition</p>
</li>
</ul>
css:
#galleries li
{
width:225px;
display:inline-block;
}
#galleries li p
{
margin:10px 0 20px 0;
}
Here's a link to the page for reference (nb. site is still in debug mode!!!)
http://lexie.myredmonkey.co.uk/index.php?/gallery/category/C4/
Apologies about the formatting of this answer!