WordPress.org

Ready to get started?Download WordPress

Forums

#autoXML (5 posts)

  1. jafer
    Member
    Posted 7 years ago #

    I'm trying to have my site validate in XHTML and CSS. However, I get the following warning in the CSS validator:

    Same colors for color and background-color in two contexts body and #autoXML50946735094673
    Same colors for color and background-color in two contexts #footer and #autoXML50946735094673

    In my style.css sheet, the body and the footer don't have the same color and background-color.

    I'd like to find out where it's reading this. Is there another stylesheet? And where on earth is #autoXML... ?

    Any help?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Without seeing the CSS or the validator results, it's kind of difficult to say anything at all. Care to post a link to these results so we can see them for ourselves?

  3. jafer
    Member
    Posted 7 years ago #

    Here's the link to the validator - I copied the message above from there.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Ahh.. Okay, you're validating your webpage and it's looking at the total CSS. This is where the autoXml comes from... it's an inline style on the page.

    The general error of "Same colors for color and background-color in two contexts" means that somewhere, you have the text color and the background color set to the same thing, for something. Thus your text would be invisible on the page. Like looking at white on white. You can't see it.

    The "#autoXML" is the validator's poor way of telling you that a style actually on the page itself (and not in the CSS file) is causing this sort of thing to happen.

    In particular, this is one of the problems in your webpage's code:
    <span style="color:#8431bd">(press Ctrl+D)</span>
    That color is the same as it's background, because the background is "body" which has this in it: "background : #8431bd;". That's what it's complaining about for one of those warnings. It's basically telling you that your text might be invisible.

    Of course, the validator is not perfect. It can't tell that the actual background for that section is white, for example. Still, it's something to be aware of, basically. It's not often that you want the background of a big space (like body) to be the same as the foreground color of text on the page. Things get hidden too easily that way.

  5. jafer
    Member
    Posted 7 years ago #

    Thanks for explaining the #autoXML, Otto. I changed that and everything validates perfectly. I was wondering WTH that laid, since I knew it wasn't in my stylesheet. Good explanation.

Topic Closed

This topic has been closed to new replies.

About this Topic