...

View Full Version : quick question about stying <a> tags



mike2325
05-19-2010, 03:51 PM
Hi,
currently I am styling my navigation bar by using a:link,a:visited{} and a:hover,a:active{} in my style sheet. However, this then styles all anchor tags in my whole website. How can I get it so that my navigation bar uses just the styling in the a:link,a:visited{} and the a:hover,a:active{}, but other anchor tags use different styling?

Thanks.

abduraooft
05-19-2010, 04:10 PM
How can I get it so that my navigation bar uses just the styling in the a:link,a:visited{} and the a:hover,a:active{}, but other anchor tags use different styling? Read the specificity of CSS (http://www.htmldog.com/guides/cssadvanced/specificity/)

mike2325
05-19-2010, 04:18 PM
Thanks, that helped me solve it.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum