Creating a navigation bar with a multilevel dropdown on it is giving me trouble. I can easily style the text when hovering over my navbar, but styling the insides of the dropdown seems to be a challenge. I've attempted to style it myself without success. As a beginner in this field, can someone please guide me on how to achieve this? I just want to learn how to do it correctly. Thank you in advance.
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">...</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Testing<span class="caret"></span></a>
<ul class="dropdown-menu multi-level" role="menu" aria-labelledby="dropdownMenu">
<li><a class ="menu-title" href="#">Menu</a></li>
<li class="dropdown-submenu">
<a class="text" tabindex="-1" href="#">1st level</a>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="#">2nd level</a></li>
<li><a tabindex="-1" href="#">2nd level</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
`
.dropdown-menu{
background-color: #ff9999;
}
.menu-title{
background-color: #ff7f7f;
}
.dropdown{
background-color:#ff4c4c;
}
/* More CSS styles here */
`