|
Posted by maya on February 19, 2008, 12:33 pm
Please log in for more thread options
Bergamot wrote:
> 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..
>
> <img> is 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.html#propdef-vertical-align
>
> img or
> img
>
> 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.
that did it! thank you very much....
|