I am trying to change the css style of a specific item in my menu. My HTML code is this:
<ol class="nav-primary">
<li class="level0 nav-1 first parent"></li>
<li class="level0 nav-2"></li>
<li class="level0 nav-3"></li>
<li class="level0 nav-4 parent menu-active">
<li class="level1 nav-4-1 first last">
<a class="level1 " href="http://www.example.com"></a>
And the CSS I am trying (that probably needs tweaking) is this:
.nav-primary li.level1.nav-4-1 first {
color: #000;
}
asked May 12, 2015 at 1:00
1 Answer 1
The CSS should be this
.nav-primary li.level1.nav-4-1.first a {
color: #000;
}
answered May 12, 2015 at 1:10
-
Thanks. Unfortunately that's not working though.user3217495– user32174952015年05月12日 01:12:23 +00:00Commented May 12, 2015 at 1:12
-
Nevermind; I had it sitting in the wrong screen resolution for the site! Eugh. No wonder I couldn't get it working. Thanks for your help!user3217495– user32174952015年05月12日 04:12:31 +00:00Commented May 12, 2015 at 4:12
default