Forum Moderators: not2easy

Message Too Old, No Replies

CSS replacement for align="absbottom"

XHTML 1.0 Transitional

         

StepOne

11:30 am on Sep 7, 2004 (gmt 0)

10+ Year Member



Hi,

I would like to place a small image within a line of text. Using align="absbottom" within the img tag gives me the results I want, however, this is non-standard XHTML. Can anyone let me know the cross-browser CSS equivalent?

Many thanks.

Span

11:52 am on Sep 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Absbottom?
Wasn't that proprietary NN4 code?
Here are valid CSS2 cross-browser vertical-align values:
[devguru.com ]

StepOne

4:15 pm on Sep 7, 2004 (gmt 0)

10+ Year Member



Hi Span,

"Absbottom?
Wasn't that proprietary NN4 code?"

No, I think absbottom is proprietary to Microsoft, IE6 still uses it. However, many thanks I took your advice and have placed the following in my style sheet:

img.bt { vertical-align: bottom; }

and <img src="graphics/mygif.gif" class="bt" width="x" height="x" alt="x" />

in the HTML. This gave the same results as absbottom and is standards complaint.

Thanks again!