View Single Post
Old 12-22-2012, 04:05 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello redstep,
Would using the id or class of the element that contains your link be specific enough? If all the links will be contained in <article> you may target only those links by writing your CSS like this -
Code:
article a:focus, article a:hover {color:#fff;text-decoration:none;}
article a {color:#121212;text-decoration:none;background-color:#ffc21f;
See about specificity here.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote