SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Strange CSS errors, I've never seen

    Line: 38 Context : .link
    Parse Error - link_header { padding: 2px; font-family: Verdana, sans-serif; font-size: 12px; color: #000000; background-color: #DFEFFF; width: 100%; font-weight: bold; }

    Line: 67 Context : .tab
    Parse Error - tab_on { padding:5px; font-family: Verdana, sans-serif; font-size:12px; color:#ffffff; background-color:#0D9BFF; height:15px; font-weight:bold; }

    Line: 77 Context : .tab
    Parse Error - tab_off { padding:5px; font-family: Verdana, sans-serif; font-size:12px; color:#ffffff; background-color:#4387B7; height:15px; font-weight:bold; }
    I've never seen anything quite like it, it's strange. What's it complaining about, and how can I fix it?

    Regards,
    Someonewhois

  2. #2
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How does link_header relate to .link?
    (and tab_on and tab_off to .tab?)

    Are link_header, tab_on and tab_off declared as classes or ids in your css?

    Can you show us the css file (or css section)?


    Alternatively, just remove the underscore (_) from the class names.
    Afaik, it shouldn't make a difference, but it does.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  3. #3
    SitePoint Wizard silver trophy someonewhois's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    6,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Bill Posters, thanks for the reply - .link_header, .tab_on, and .tab_off are all classes.. and I don't see how it complains about .link, because I don't have a .link. I'll try getting rid of the underscores

    Thanks!

    [ Edit: Fixed it! Alright, thanks, check your reputation ]

  4. #4
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx for the rep points.

    Fwiw, underscores in class names and other identifiers are *meant* to be supported as they are part of the 'updated' CSS2 spec.
    They weren't originally part of the spec, but were added in erratum.
    Unfortunately, some browsers and even the W3C's own validation engine trip over them as they haven't been updated to include the new rule of acceptance.
    This 'bug-like' behaviour in the validator was meant to be addressed ages ago, but clearly still hasn't been.

    Reference

    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


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
  •