Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > ? CSS replacing <img align="absmiddle">

Thread Tools

? CSS replacing <img align="absmiddle">

mark | r
Posts: n/a
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


Reply With Quote
Steve Pugh
Posts: n/a
"mark | r" <(E-Mail Removed)> wrote:

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

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

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

<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

Steve Pugh <(E-Mail Removed)> <>
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing frame by css? Huub HTML 7 04-19-2007 03:58 PM
Replacing - and not Replacing... Rob Meade ASP General 5 04-11-2005 06:49 PM
Replacing an align tag inside of <img using CSS Paul F. Johnson HTML 19 10-15-2004 12:28 AM
Replacing a framed website with css Paul F. Johnson HTML 8 09-26-2004 03:43 PM
CSS - Replacing a simple HTML table Bigus HTML 8 05-07-2004 06:56 PM