Thread: CSS Parse Error

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2008
    Posts
    1
    Rep Power
    0

    CSS Parse Error


    When trying to validate my CSS with W3C, I keep getting parse error on this code :-

    ul#menu li a.home:hover, ul#menu li a.home:active,
    ul#menu li a.port:hover, ul#menu li a.port:active,
    ul#menu li a.multi:hover, ul#menu li a.multi:active,
    ul#menu li a.web:hover, ul#menu li a.web:active,
    ul#menu li a.about:hover, ul#menu li a.about:active,
    { background-position: center center; }

    The code is part for a horizontal 3 state navigation menu using images.
  2. #2
  3. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    Just remove the last comma, there shouldn't be any comma before the bracket.

    Code:
    ul#menu li a.home:hover, ul#menu li a.home:active,
    ul#menu li a.port:hover, ul#menu li a.port:active,
    ul#menu li a.multi:hover, ul#menu li a.multi:active,
    ul#menu li a.web:hover, ul#menu li a.web:active,
    ul#menu li a.about:hover, ul#menu li a.about:active
    { background-position: center center; }

IMN logo majestic logo threadwatch logo seochat tools logo