Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-13-2009, 01:05 PM   PM User | #1
soap_box
New Coder

 
Join Date: Aug 2008
Location: UK
Posts: 47
Thanks: 6
Thanked 2 Times in 2 Posts
soap_box is an unknown quantity at this point
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
soap_box is offline   Reply With Quote
Old 05-13-2009, 01:10 PM   PM User | #2
brazenskies
Regular Coder

 
Join Date: May 2008
Location: Oxford, UK
Posts: 422
Thanks: 14
Thanked 27 Times in 27 Posts
brazenskies is on a distinguished road
what is the 'none;' for in hover and active? Get rid of that
brazenskies is offline   Reply With Quote
Users who have thanked brazenskies for this post:
soap_box (05-13-2009)
Old 05-13-2009, 01:14 PM   PM User | #3
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
This is a style declaration: color:#5ba5ba;
This ain't: none;

attribute: value;

http://www.hwg.org/resources/faqs/cssFAQ.html#ruleset
adios is offline   Reply With Quote
Old 05-13-2009, 01:16 PM   PM User | #4
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
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.
__________________
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

Last edited by Rowsdower!; 05-13-2009 at 01:26 PM.. Reason: I missed one tiny letter in one tiny word...
Rowsdower! is offline   Reply With Quote
Old 05-13-2009, 01:24 PM   PM User | #5
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
Quote:
vestigal code


Is that like ".. the mouse slipped from all the French-fry grease on my hand .."
adios is offline   Reply With Quote
Old 05-13-2009, 01:27 PM   PM User | #6
soap_box
New Coder

 
Join Date: Aug 2008
Location: UK
Posts: 47
Thanks: 6
Thanked 2 Times in 2 Posts
soap_box is an unknown quantity at this point
This is directed at myself:

__________________
~soapbox
soap_box is offline   Reply With Quote
Old 05-13-2009, 01:27 PM   PM User | #7
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
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
Rowsdower! is offline   Reply With Quote
Old 05-13-2009, 01:28 PM   PM User | #8
brazenskies
Regular Coder

 
Join Date: May 2008
Location: Oxford, UK
Posts: 422
Thanks: 14
Thanked 27 Times in 27 Posts
brazenskies is on a distinguished road
Quote:
Originally Posted by Rowsdower! View Post
some vestigial code
I like the though of html being an animal!
brazenskies is offline   Reply With Quote
Old 05-13-2009, 01:30 PM   PM User | #9
soap_box
New Coder

 
Join Date: Aug 2008
Location: UK
Posts: 47
Thanks: 6
Thanked 2 Times in 2 Posts
soap_box is an unknown quantity at this point
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
soap_box is offline   Reply With Quote
Old 05-13-2009, 01:32 PM   PM User | #10
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
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.
adios is offline   Reply With Quote
Old 05-13-2009, 01:33 PM   PM User | #11
soap_box
New Coder

 
Join Date: Aug 2008
Location: UK
Posts: 47
Thanks: 6
Thanked 2 Times in 2 Posts
soap_box is an unknown quantity at this point
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
soap_box is offline   Reply With Quote
Old 05-13-2009, 01:35 PM   PM User | #12
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
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
Rowsdower! is offline   Reply With Quote
Old 05-13-2009, 01:36 PM   PM User | #13
Rowsdower!
Senior Coder

 
Rowsdower!'s Avatar
 
Join Date: Oct 2008
Location: Some say it's everything.
Posts: 2,007
Thanks: 5
Thanked 395 Times in 388 Posts
Rowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura aboutRowsdower! has a spectacular aura about
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
Rowsdower! is offline   Reply With Quote
Old 05-13-2009, 01:36 PM   PM User | #14
soap_box
New Coder

 
Join Date: Aug 2008
Location: UK
Posts: 47
Thanks: 6
Thanked 2 Times in 2 Posts
soap_box is an unknown quantity at this point
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
soap_box is offline   Reply With Quote
Old 05-13-2009, 01:37 PM   PM User | #15
adios
Senior Coder

 
Join Date: Jun 2002
Posts: 1,404
Thanks: 2
Thanked 32 Times in 32 Posts
adios is on a distinguished road
How many times have I told you: no French fries while editing CSS!

Always with the French fries ...
adios is offline   Reply With Quote
Reply

Bookmarks

Tags
hover, link, parse error none

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:14 PM.


Advertisement
Log in to turn off these ads.