Support » Plugin: Crafty Social Buttons » w3C validation on img

  • Resolved Lou Friedman


    This plugin throws validation errors on the images.

    For example, returns a message:
    Error: Bad value 100% for attribute width on element img: Expected a digit but saw % instead.

    Using code like this:
    <img height="auto" width="100%" style="max-width:360px;" src="/mysource.jpg">

    Should be converted to something like this:

    <img style="height:auto; width:100%; max-width:360px;" src="/mysource.jpg">

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sarah


    Can you give me a URL to a site where this is happening?

    This doesn’t look at all like the code generated by this plugin. Width and height are set explicitly in pixels on every image, and there are certainly none of the sharing buttons that ever have a width of 100%, so I suspect there must be something else going on.


    Hi Sarah,

    I ran the validation again on

    This time I did not get any errors on the plugin code. And the width and height are set explicitly as you described.

    I suspect I copied the wrong code or the validation service I used had a bug. Sorry for the bother!

    Great plugin!

    Forgot to close issue. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘w3C validation on img’ is closed to new replies.