Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    New Coder
    Join Date
    Aug 2008
    Location
    UK
    Posts
    47
    Thanks
    6
    Thanked 2 Times in 2 Posts

    a:hover and "parse error none"

    Can anyone tell me the right way to have link colors change for hover/active etc.

    I have this in my style sheet:

    Code:
    a {text-decoration:none;}
    
    a:link {color:#5ba5ba;}
    a:visited {color:#09C;}
    a:hover {none; color:#0FF;}
    a:active {none; color:#09C;}
    When validating I get the following errors:
    a:hover Parse Error none
    a:active Parse Error none

    What is the right way to do this so I don't get an error?
    ~soapbox

  • #2
    Regular Coder
    Join Date
    May 2008
    Location
    Oxford, UK
    Posts
    422
    Thanks
    14
    Thanked 27 Times in 27 Posts
    what is the 'none;' for in hover and active? Get rid of that

  • Users who have thanked brazenskies for this post:

    soap_box (05-13-2009)

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    This is a style declaration: color:#5ba5ba;
    This ain't: none;

    attribute: value;

    http://www.hwg.org/resources/faqs/cssFAQ.html#ruleset

  • #4
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by brazenskies View Post
    what is the 'none;' for in hover and active? Get rid of that
    I'm betting what we're after with that "none;" is either some vestigial code or else the OP meant to use text-decoration:none; to avoid underlining on hover.
    Last edited by Rowsdower!; 05-13-2009 at 01:26 PM. Reason: I missed one tiny letter in one tiny word...
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    vestigal code


    Is that like ".. the mouse slipped from all the French-fry grease on my hand .."

  • #6
    New Coder
    Join Date
    Aug 2008
    Location
    UK
    Posts
    47
    Thanks
    6
    Thanked 2 Times in 2 Posts
    This is directed at myself:

    ~soapbox

  • #7
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by adios View Post


    Is that like ".. the mouse slipped from all the French-fry grease on my hand .."
    I don't get the joke, but after you quoted me I realized I made a typo...so...thanks!
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #8
    Regular Coder
    Join Date
    May 2008
    Location
    Oxford, UK
    Posts
    422
    Thanks
    14
    Thanked 27 Times in 27 Posts
    Quote Originally Posted by Rowsdower! View Post
    some vestigial code
    I like the though of html being an animal!

  • #9
    New Coder
    Join Date
    Aug 2008
    Location
    UK
    Posts
    47
    Thanks
    6
    Thanked 2 Times in 2 Posts
    in my defense the validator error: "parse error none" was a bit confusing. I thought it was telling me there was no parse error where there should've been, which made no sense.
    ~soapbox

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    I was referring to sloppy editing, and leaving bits and pieces around behind you. Funny, I didn't even notice the misspelling. I googled both 'vestigal' and 'vestigial' and it appears that both are, if not equally esteemed, legitimate. Go figure.

  • #11
    New Coder
    Join Date
    Aug 2008
    Location
    UK
    Posts
    47
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Hey, hey, gimme a break, "sloppy" is a bit harsh Those two errors were the only ones I got straight away in 2 large style sheets!
    ~soapbox

  • #12
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by soap_box View Post
    in my defense the validator error: "parse error none" was a bit confusing. I thought it was telling me there was no parse error where there should've been, which made no sense.
    No need to explain. We've all been there before, I'm sure. Welcome to another great "aw, man" moment!
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #13
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by adios View Post
    I was referring to sloppy editing, and leaving bits and pieces around behind you. Funny, I didn't even notice the misspelling. I googled both 'vestigal' and 'vestigial' and it appears that both are, if not equally esteemed, legitimate. Go figure.
    Ahhh, I see now.

    And, yes, google will post up results for both ways but I've always seen it with the other "i" so that's what I'm sticking with!
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #14
    New Coder
    Join Date
    Aug 2008
    Location
    UK
    Posts
    47
    Thanks
    6
    Thanked 2 Times in 2 Posts
    Yeah we've all found stupid semi-colons hanging around our css and accidentally missed the closing tag here and there, but we don't normally make threads about it before we spot it, haha
    ~soapbox

  • #15
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    How many times have I told you: no French fries while editing CSS!

    Always with the French fries ...


  •  

    Tags for this Thread

    Posting Permissions

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