Kryptix Posted December 22, 2011 Share Posted December 22, 2011 As title really, I have <a>'s everywhere and I want to style them all EXCEPT for the <a>'s in <nav> How would I leave them alone? Quote Link to comment https://forums.phpfreaks.com/topic/253649-how-to-style-everywhere-except/ Share on other sites More sharing options...
scootstah Posted December 22, 2011 Share Posted December 22, 2011 Something like nav a { color:inherit !important; } Quote Link to comment https://forums.phpfreaks.com/topic/253649-how-to-style-everywhere-except/#findComment-1300368 Share on other sites More sharing options...
Frank P Posted December 22, 2011 Share Posted December 22, 2011 As title really, I have <a>'s everywhere and I want to style them all EXCEPT for the <a>'s in <nav> How would I leave them alone? You can't. There are some pseudo selectors, but there isn't one that will exempt the <nav><a>s. You can only style the <a>s and the <nav><a>s, like this: a { property: value; } nav a { property: value; } Quote Link to comment https://forums.phpfreaks.com/topic/253649-how-to-style-everywhere-except/#findComment-1300557 Share on other sites More sharing options...
deathadder Posted January 10, 2012 Share Posted January 10, 2012 <a>;s as in links? if so in the <nav> css section just add the appropriate <a> styling, if you supply your css file i could show you Quote Link to comment https://forums.phpfreaks.com/topic/253649-how-to-style-everywhere-except/#findComment-1306090 Share on other sites More sharing options...
Ivan Ivković Posted January 24, 2012 Share Posted January 24, 2012 a{ color: blue; /* All links blue. */ } nav a{ color: red; /* All links in nav red. */ } I guess this'll do? Quote Link to comment https://forums.phpfreaks.com/topic/253649-how-to-style-everywhere-except/#findComment-1310515 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.