Bill Teale
Bill Teale

Reputation: 169

change dropdown menu text to yellow in bootstrap3 collapsed mode

I cannot change the grey text to yellow when a dropdown is clicked in a collapsed view. I have the example at http://www.bootply.com/zGzMrrmrWL

My code is all over the place because I have just been throwing things in to see if they work! I'm at that kind of desperation state! Can anybody show me what I haven't done? I simply want all the text to be yellow, whether it is in a dropdown or on the main menu

Upvotes: 0

Views: 61

Answers (1)

Carol Skelly
Carol Skelly

Reputation: 362430

You need to have..

.navbar-inverse .navbar-nav .open .dropdown-menu>li>a {color:#FFFF00; font-size: 18px;}

in your CSS overrides to the specificity of .dropdown-menu>li>a isn't enough to override Bootstrap's CSS that is changing the color to grey.

http://bootply.com/GKs5h2XiZc

Upvotes: 1

Related Questions