WordPress.org

Ready to get started?Download WordPress

Forums

RSS widget from WP introduces css error (4 posts)

  1. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    After adding the RSS widget to my sidebar, http://www.ourexcellentadventures.com
    I can't validate my css.

    I get this error, Value Error : background Too many values or values are not recognized : orange. The value comes from, <img style='background:orange;color:white;border:none;' width='14' height='14' src='http://www.ourexcellentadventures.com/wp-includes/images/rss.png' alt='RSS' /> which is in-line css.

    Is there a way to fix this or should I find another widget?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    There's nothing wrong with that CSS that I can see! And the W3C CSS validator gives the site a clean bill of health.

  3. kmessinger
    Volunteer Moderator
    Posted 4 years ago #

    Well that is pretty strange. This url says all is ok,
    http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.ourexcellentadventures.com&profile=css21&usermedium=all&warning=1&lang=en

    and this url reports an error
    http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3a%2f%2fwww.ourexcellentadventures.com%2f

    Wished I had looked at the top one first before spending time trying to fix an error(?).

    EDIT: One is level 2 css and the other level 2.1 - I think I will quit while I am ahead.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

    Validators are just tools. And dumb software tools, at that. Maybe one of the algorithms didn't like the single quotes around the style declaration next to single quoted image dimensions. Who knows? Either way, it all looks fine.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags