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

By admin  

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

  1. Bella
    Posted 21 December, 2009 at 7:04 PM | Permalink

    The above code does not really help. Using ‘absbottom’ aligns the image with the text, but the page is not validated in w3c
    help.

  2. admin
    Posted 21 December, 2009 at 11:14 PM | Permalink

    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”.

  3. Posted 1 February, 2010 at 4:51 AM | Permalink

    Good fill someone in on and this mail helped me alot in my college assignement. Thanks you as your information.

  4. Posted 12 February, 2010 at 12:09 PM | Permalink

    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.

  5. Posted 28 March, 2010 at 7:32 AM | Permalink

    Keep posting stuff like this i really like it

  6. Posted 1 April, 2010 at 10:13 PM | Permalink

    Nice information, I really appreciate the way you presented.

  7. Posted 10 April, 2010 at 2:13 PM | Permalink

    How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great

  8. Posted 12 April, 2010 at 5:58 PM | Permalink

    Nice information, I really appreciate the way you presented.Thanks for sharing..

  9. Posted 21 April, 2010 at 11:01 AM | Permalink

    this post is very usefull thx!

  10. Posted 25 April, 2010 at 2:59 PM | Permalink

    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”.

  11. Posted 25 April, 2010 at 6:40 PM | Permalink

    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”.

  12. Posted 25 April, 2010 at 10:36 PM | Permalink

    How you find ideas for articles, I am always lack of new ideas for articles. Some tips would be great

  13. Posted 26 April, 2010 at 8:23 PM | Permalink

    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”.

  14. Posted 14 July, 2010 at 11:07 AM | Permalink

    I want to quote your post in my blog. It can?
    And you et an account on Twitter?

  15. Posted 21 July, 2010 at 6:44 AM | Permalink

    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

  1. By eoumghrv on 28 January, 2010 at 12:28 PM

    eoumghrv…

    eoumghrv…

Post a Comment

Your email is never shared. Required fields are marked *

*
*