Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not seem to override a:link behavior in CSS for a given div

Status
Not open for further replies.

BFP

Technical User
May 18, 2000
52
0
0
US
Hi All.

I have a footer in my site

Code:
<div id="footer">

I have set up an a:link style that just happens to almost exactly match my background image, so I attempt to override it using two techniques

Code:
#footer a:link {color:fff;}

or

Code:
a.footer-link:link {color:fff;}

with the appropriate class declaration in the code for the second method.

Neither method works and the link color never changes.

Any thoughts?

Thanks,

BFP
 
Does this work?
Code:
#footer a:link { color:fff !important; }
If it does, your problem is specificity. To read more on specificity, check here:
If not, you might be having an error in your stylesheet that makes it not being read beyond a certain point.

That is all I can help you with, because on an empty page, both your methods would work. With the first one being the preferred one.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top