http://technology.ohmygoh.com/alignabsmiddle-or-alignabsbottom-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″><img 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 style=”vertical-align:bottom” src=”images/icon_diamond.gif” alt=”" >
Same as:
<img style=”vertical-align:middle” src=”images/icon_diamond.gif” alt=”" >
15 Comments
The above code does not really help. Using ‘absbottom’ aligns the image with the text, but the page is not validated in w3c
help.
You have to put the ‘absbottom’ into style/css like the example stated below the article, eg: style=”vertical-align:middle”, then you will pass the w3c validation, and it works with text + image, i just tested.
i m using doc type “XHTML 1.0 Transitional”.
Good fill someone in on and this mail helped me alot in my college assignement. Thanks you as your information.
I am bare impressed with the article I have just read. I wish the writer of technology.ohmygoh.com can continue to provide so much practical information and unforgettable experience to technology.ohmygoh.com readers. There is not much to state except the following universal truth: The people who are actually going to be interesting aren’t going to give you meaningful answers to a/s/l anyway. I will be back.
Keep posting stuff like this i really like it
Nice information, I really appreciate the way you presented.
How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great
Nice information, I really appreciate the way you presented.Thanks for sharing..
this post is very usefull thx!
You have to put the ‘absbottom’ into style/css like the example stated below the article, eg: style=”vertical-align:middle”, then you will pass the w3c validation, and it works with text + image, i just tested.
i m using doc type “XHTML 1.0 Transitional”.
You have to put the ‘absbottom’ into style/css like the example stated below the article, eg: style=”vertical-align:middle”, then you will pass the w3c validation, and it works with text + image, i just tested.
i m using doc type “XHTML 1.0 Transitional”.
How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great
You have to put the ‘absbottom’ into style/css like the example stated below the article, eg: style=”vertical-align:middle”, then you will pass the w3c validation, and it works with text + image, i just tested.
i m using doc type “XHTML 1.0 Transitional”.
I want to quote your post in my blog. It can?
And you et an account on Twitter?
Pretty nice post. I just stumbled upon your blog and wanted to say that I have really enjoyed browsing your blog posts. In any case I’ll be subscribing to your feed and I hope you write again soon!
One Trackback
eoumghrv…
eoumghrv…