n3wb1e
05-20-2011, 04:28 PM
I have a cell containing a div tag which itself contains an image. When the page loads, the image loads at the top of the cell and not the middle. Ive specified middle alignment in the cell and also the CSS but it still stubbornly stays at the top.
--------------HTML----------------
<td colspan="2" height="220" valign="middle">
<div class="headerLogoMainPage"><img src="images/HCLogo.gif" width="210" height="116" /></div></td>
-------------CSS---------------------
.headerLogoMainPage{
height: 220px;
float:left;
width: 210px;
background-image:url(../images/GradientBackground.gif);
vertical-align:middle;}
Thanks for any help.
--------------HTML----------------
<td colspan="2" height="220" valign="middle">
<div class="headerLogoMainPage"><img src="images/HCLogo.gif" width="210" height="116" /></div></td>
-------------CSS---------------------
.headerLogoMainPage{
height: 220px;
float:left;
width: 210px;
background-image:url(../images/GradientBackground.gif);
vertical-align:middle;}
Thanks for any help.