? CSS replacing

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
anyone know how this can be achieved in css?

i have an image e.g.

<img src="image.gif" width="20" height="40" align="absmiddle" alt="" />some

how can i align the text with the absolute middle of the image using only


Re: ? CSS replacing

Quoted text here. Click to load it

absmiddle is not a permitetd value of align in any standard version of
HTML. The permitted values are top, middle, bottom, left and right.

Quoted text here. Click to load it

<p><img src="image.gif" width="20" height="40" style="vertical-align:
middle;" alt="" />some text</p>

From my experiments it looks like vertical-align: middle behaves more
like the non-standard align="absmiddle" than the standard
align="middle", so it seems to be exactly what you want. (Tested in
IE6, Opera 7.23 and Mozilla 1.5, note that in the last two
align="middle" and align="absmiddle" display the same anyway - only IE
clings to the old Netscape 2(?) display).


"My theories appal you, my heresies outrage you,
 I never answer letters and you don't like my tie."  - The Doctor

Site Timeline