1

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

0

The CSS should be this

.nav-primary li.level1.nav-4-1.first a {
 color: #000;
}
answered May 12, 2015 at 1:10
2
  • Thanks. Unfortunately that's not working though. Commented 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! Commented May 12, 2015 at 4:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.