Hi there,
I have a navigation menu which is a HTML list. Each list item is a menu option and has its own class:
<ul id="topnav">
<li><a href="http://index.php?/home/index/class=home">Home</a></li>
<li><a href="http://index.php?/about/index/class=about">About</a></li>
<li><a href="http://index.php?/explore/indexclass=explore">Explore</a></li>
<li><a href="http://index.php?/help/index/class=help">Help</a></li>
<li><a href="http://index.php?/contact/index/class=contact">Contact</a></li>
</ul>Also, the body tag of the Home Page looks like this:
<body id="home">I have read a little about descendent selectors, and is the above method a way for styling a menu item so that it is a different colour to the other menu items?
I need a CSS selector that applies this style only when the Body has id of ‘home’, and when the div class is ‘topnav’, and the link (a) class is ‘home’
I’ve tried various combinations of CSS but none of them seem to work. Can someone help me out with this one piece of code here?
Or is there an even easier way of achieving this in EE that I’m overlooking?
Thanks,
Ste