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

    Join Date
    Feb 2004
    Posts
    378
    Rep Power
    11

    Confusing [simple] CSS parse error


    Hi all,

    Has anyone received a

    Line: 0
    Parse error - Unrecognized : }

    with the rest of the CSS document validated under W3C validator? I can't work out why it's not happy.

    The beginning of my CSS is:



    /* This is the only CSS for the Waste RE3 website */

    a:link { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
    font-style: normal; color: #008000; text-decoration: none}

    a:visited { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
    font-style: normal; color: #008000; text-decoration: none}

    a:hover { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
    font-style: normal; color: #FF9933; text-decoration: underline}
  2. #2
  3. st0nEd c0deR
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Manchester, England
    Posts
    202
    Rep Power
    14
    try this:

    Code:
    a:link { 
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
    font-style: normal; 
    color: #008000; text-decoration: none;
    } 
    
    a:visited { 
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; 
    font-style: normal; color: #008000; 
    text-decoration: none;
    } 
    
    a:hover { 
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
    font-style: normal; 
    color: #FF9933; 
    text-decoration: underline;
    }

    Also using Verdana as a base font might not work too well, try viewing the site on more than 1 browser, and OS, also try changing the font family to see if it looks any better, there are tuts about font sizes etc that give examples of what the end user will see! Verdana is kinda hard to read when its at a small font size

    Cheers
    MostDef
    All is not what it seems, and it seems that this is not all!
    POISON - the answer to all of lifes little problems
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Posts
    378
    Rep Power
    11

    Thank you


    Worked like a charm...THANK YOU!

    What was the problem by the way??? the way the css was structured??

    Ben
  6. #4
  7. st0nEd c0deR
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2003
    Location
    Manchester, England
    Posts
    202
    Rep Power
    14
    No probs

    your code:

    Code:
    a:link { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px;
    font-style: normal; color: #008000; text-decoration: none}
    after - text-decoration: none } you need a ; EG:
    text-decoration: none; }

    if u see what i mean

    MostDef
    All is not what it seems, and it seems that this is not all!
    POISON - the answer to all of lifes little problems

IMN logo majestic logo threadwatch logo seochat tools logo