T
tshad
I have table cell with an image and some text.
The Text ends up below the image even if I float the text to the left. The
text does move to the left but is still below the image.
I have tried vertical-align:top and it doesn't help.
I could fix it be creating another table in the cell.and separate them but I
would like to see if there is another way to do it.
The table is:
<table cellpadding="0" cellspacing="0" border="0" style="height:100%">
<tr>
<td id="headerImg" style="height:224px; vertical-align:top">
<img src="images/LogoTR2.gif" />
<span class="style1">The information you seek<br
/>Experienced Specialists</span>
</td>
</tr>
</table>
The "headerImg" which creates a background picture is:
#headerImg {
margin: 0 auto;
height: 224px;
background: url(../images/bg/header_image.jpg) no-repeat top left;
}
and the class "style1" for the text that I am trying to move to the top of
the cell (which is now on the left below the LogoTR2.gif image):
.style1
{
font-family: "Bookman Old Style";
font-weight: bold;
color: #3A4C76;
float:right;
}
I tried putting vertical-align:top in the style1 class that did nothing.
Thanks,
Tom
The Text ends up below the image even if I float the text to the left. The
text does move to the left but is still below the image.
I have tried vertical-align:top and it doesn't help.
I could fix it be creating another table in the cell.and separate them but I
would like to see if there is another way to do it.
The table is:
<table cellpadding="0" cellspacing="0" border="0" style="height:100%">
<tr>
<td id="headerImg" style="height:224px; vertical-align:top">
<img src="images/LogoTR2.gif" />
<span class="style1">The information you seek<br
/>Experienced Specialists</span>
</td>
</tr>
</table>
The "headerImg" which creates a background picture is:
#headerImg {
margin: 0 auto;
height: 224px;
background: url(../images/bg/header_image.jpg) no-repeat top left;
}
and the class "style1" for the text that I am trying to move to the top of
the cell (which is now on the left below the LogoTR2.gif image):
.style1
{
font-family: "Bookman Old Style";
font-weight: bold;
color: #3A4C76;
float:right;
}
I tried putting vertical-align:top in the style1 class that did nothing.
Thanks,
Tom