24 October, 2007

align="absmiddle" or align="absbottom" not validate in W3C Markup Validator

Normally we will use align="absmiddle" to make an image align in the middle between a HTML element/object, e.g:


< input name="text1" type="text" maxlength="17">< src="button_ok.gif'" alt="OK" style="margin-bottom:1px;" align="absmiddle">
or
<img src="images/icon_diamond.gif" alt="" align="absbottom">

You will get error when you try to validate your page with W3C Markup Validator (http://validator.w3.org/check).

How to solve?

Use this:

<img src="images/icon_diamond.gif" alt="" style="vertical-align:bottom">

Same to:

<img src="images/icon_diamond.gif" alt="" style="vertical-align:middle">

2 comments:

Anonymous said...

Thanks!!

/Anders
...in Sweden

Anonymous said...

Heyа і'm for the first time here. I came across this board and I in finding It really helpful & it helped me out much. I am hoping to offer something again and aid others such as you aided me.

Also visit my weblog; RPMPoker Bonus