Results 1 to 5 of 5

Thread: CSS validation errors

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS validation errors

    Hey guys

    I'm having a little problem that i can solve.
    The problem is when i validate my css it gives me this 2 errors:

    Lexical error at line 43, column 81. Encountered: "?" (63), after : ""

    and

    Value Error : display -moz-inline-box is not a display value : -moz-inline-box

    The first i can't find it and the second it's the cform style sheet, it uses the moz-inline-box to display inline in firefox. The problem is that don't validate.
    There's another way of bypass this?

    Can someone help me, please?

    I would love to have everything valid.

    Thanks in advance

    The url is: www.niceoutput.com

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Since -moz-inline-box is a proprietary value, you're never going to get it to validate, and even if you did it would be a workaround rather than an actual fix (which defeats the point of validation).

    The "?" sounds like you've got an invalid (probably invisible) character in one of your stylesheets. The safest way to do it is to delete the offending line (and maybe some of the lines around it) and rewrite them. You can go through it with a hex editor, but it's fiddlier.

    Don't use XHTML yet. IE still doesn't support it. The irony is that, even though your page validates as XHTML, it's still not actually valid, because it's being sent with a text/html MIME type. It's perfectly valid XHTML, but that simply doesn't apply, because it'll be parsed as invalid HTML instead. If you want it to be parsed as XHTML, send it with an application/xhtml+xml MIME type, but be aware that this will prevent your page from rendering in IE. If you don't, stick with HTML 4.01 Strict, the latest markup standard with an user base.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Sure, Twey, IE doesn't support it...
    However, IE doesn't support a lot of things.
    I use XHTML because it makes more sense, is easier to write/edit, and I know that when it does become the normal markup language, I'll know it while other web designers are scrambling to learn it.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Sure, Twey, IE doesn't support it...
    However, IE doesn't support a lot of things.
    Your point?
    I use XHTML
    If you truly do use XHTML, and have made a conscious decision to serve it as application/xhtml+xml and thus abandon support for IE, there's no problem (well, there are currently still a few disadvantages [or lacks of theoretical advantages], but that's not very important). The problem arises when people don't understand the purpose of MIME types and serve XHTML as HTML, which is essentially the same as just serving invalid HTML.
    it makes more sense
    That's very vague.
    is easier to write/edit
    It needn't be; it depends how you write your HTML. There's no law that says you can't write neat HTML, XHTML just enforces it a little more.
    and I know that when it does become the normal markup language, I'll know it while other web designers are scrambling to learn it.
    Do you know it? Do you understand concepts such as mixing namespaces? There's not much syntax difference between HTML and XHTML 1.0 (hence why it's error-correctable to HTML), but the concepts behind them are quite dissimilar. Someone who serves XHTML as HTML won't understand or use features of XHTML that don't work in HTML. If you are using XHTML purely for educational purposes, it would be wise to use XHTML 1.1, which is not error-correctable into HTML.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    Haha, ok. You win.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •