maya wrote:
I have an image and right next to the image I have some text, all w/in
the same <td>.. but, even though I have valign="top" for the <td>, the
text does not appear on top of the <td>, it appears flush with the
BOTTOM of the image..
<imgis aligned at baseline by default. The line-height automatically
stretches to the height of the image so the text baseline and bottom of
the image are aligned. Changing the vertical alignment on the td won't
change this.
pls see http://www.mayacove.com/misc/table/table.html
not sure how to solve this, "text-align:top" does not exist in css....;)
http://www.w3.org/TR/CSS21/visudet.h...vertical-align
img {vertical-align:top} or
img {vertical-align:text-top}
That will align the top of the image with the top of the text. Keep in
mind that includes space for capital letters and ascenders.
--
Berg