WordPress.org

Forums

Validation errors (4 posts)

  1. Jinsan
    Member
    Posted 10 years ago #

    Hi,

    I'm trying to fix the following validation errors in my CSS and my content. Could someone help with this?

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.sekhu.net%2Fwp%2Fgallery%2F&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1&outline=1&verbose=1
    Line 25, column 22: document type does not allow element "div" here; assuming missing "body" start-tag

    Css errors here:
    http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http%3A//www.sekhu.net/wp/

    I thought I had everything fixed, but I guess now - the CSS fails for both the main page and the gallery, and the XHTML validation fails for the gallery (main page is fine).

    I need the outwrapper div, so I don't see why it's complaining :(

    Thanks in advance for your assistance

  2. Minna
    Member
    Posted 10 years ago #

    Well, the first validator error is because there *isn't* a body tag...

    About the css:
    2nd error about the print.css is because you don't have a stylesheet by that name (at least not where the page claims it to be)

    Warnings:
    font-family thing: it is recommended to use a generic font-family. The code tag (or style definition for it) is missing a generic family. If you want to use a monospaced font (like Courier, Courier New), you could put "monospace" at the end.
    Second warning: it's not bottom-border, it's border-bottom

    It might complain about the outerwrapper's CSS because of the error in HTML (or XHTML...)

  3. Jinsan
    Member
    Posted 10 years ago #

    thanks a lot for your help, I must have been pretty tired with regards tot he border-bottom when I did it - didn't even notice it. I've managed to fix everything, except of course there's still the error about print.css but until I make one it will remain and the alternative font I guess is for low-brow browsers that are pre-IE6/5.5.

    Well thanks again, it's pretty much working as I want:)

  4. Minna
    Member
    Posted 10 years ago #

    Alternative font, or generic font family, is for users that don't have the fonts you specify. For example on Linux the font names may be different (and maybe on Mac too, I don't know).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.