I'm currently in the process of making a navigation bar for a website using bootstrap. Everything seems to be working as expected. However on the menu I have a li which then displays a dropdown. This is where the problem comes in. When I click on the li the background seems to change to black and I can't figure out where that's coming from.
My markup looks as follows:
<div class="navbar navbar-inverse navbar-fixed-top" runat="server"> <div class="container"> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav" runat="server"> <li> <a href="#">1</a> </li> <li> <a href="#">2</a> </li> <li> <a href="#">3</a> </li> <li> <a href="#">4</a> </li> <li> <a href="#">5</a> </li> <li class="dropdown"><a runat="server" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" href="#">Training Group<span class="caret"></span></a> <ul class="dropdown-menu"> <li> <a href="#">1</a> </li> <li> <a href="#">2</a> </li> <li> <a href="#">3</a> </li> </ul> </li> </ul> </div> </div> I want so when I the back ground stays white. I've tried
.navbar> li.dropdown.active.open > a { background-color: #fff; } But it doesn't seem to change the background colour. Can someone shed some light on where I'm going wrong please.
Thanks in advance for your help and support

.navbar li.dropdown.active.open a { background-color: #fff; }.navbar li.dropdown.active.open a { background-color: #fff !important; }. If that does not work, please build a JSFiddle and I'll help you furthercssfordropdown-toggle? What does inspect element on said menu item say? Can you see any#000?