I am making a photo gallery section on a site I'm working on, and for whatever reason, the height I set for the cells seems to self adjust so that the height adds the height of the image to it. So say the image is 200px high and I have the cell set to 300px, then the cell becomes 500px. WTF? Why is it doing this? I want the cell it be 300px high total size, not in addition to what's in it. max-weight / max-height does not work either because then the cell becomes too small. Some of the cells are empty.
I've never experienced this before, why is it doing this?
Here is the CSS code:
And here is the HTML code:
I've never experienced this before, why is it doing this?
Here is the CSS code:
Code:
table.photogal
{
border: 2px solid #000000;
}
td.photogalentry
{
border: 1px solid #000000;
width: 300px;
height: 250px;
background:#F6F6CC;
padding: 5px;
text-align:center;
}
td.photogalentry_empty
{
border: 1px solid #000000;
width: 300px;
height: 250px;
background:#999999;
}
And here is the HTML code:
Code:
<center>
<table class="photogal">
<tr>
<td class="photogalentry">
<a class="picturelink" href="photos/philly_cheese_steak.jpg"><img src="photos/thumb_philly_cheese_steak.jpg""></a><br><font class="adminlink">(<a class="adminlink" href="index.php?module=admphotos&act=edit&phid=3">Edit</a>)</font></td>
<td class="photogalentry">
<a class="picturelink" href="photos/hot_dog___onion_rings.jpg"><img src="photos/thumb_hot_dog___onion_rings.jpg""></a><br><font class="adminlink">(<a class="adminlink" href="index.php?module=admphotos&act=edit&phid=4">Edit</a>)</font></td>
<td class="photogalentry_empty"> </td>
</tr>
</table></center><br><br><font class="adminlink">(<a class="adminlink" href="index.php?module=admphotos&act=upload">Upload pic</a>)</font>