I'm looking to set unique background colors for each dropdown in a Bootstrap nav-bar using CSS.
.mynavbar .dropdown ul.dropdown-menu:nth-child(1) {
background-color: #59b057;
}
.mynavbar .dropdown ul.dropdown-menu:nth-child(2) {
background-color: #eb712b;
}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false>COMPANY</a>
<ul class="dropdown-menu dropdown-menu-right scrollable-menu>
<li><a href="#">ABOUT US</a></li>
<li><a href="#">DOWNLOAD</a></li>
<li><a href="#">CERTIFICATION</a></li>
<li><a href="#">CAREERS</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false>FACILITIES</a>
<ul class="dropdown-menu dropdown-menu-right scrollable-menu>
<li><a href="#">PRODUCTION</a></li>
<li><a href="#">R&D</a></li>
</ul>
</li>
Each of the dropdowns should have its own distinct background color.