Trying to set the dropdown submenu links in my navigation bar to match the width of their parent <li>
, but it's proving to be more challenging than I expected.
Below is the code:
HTML:
<div id="navbar" class="navbar">
<nav id="site-navigation" class="navigation main-navigation" role="navigation">
<div class="menu-hovedmenu-container">
<ul id="primary-menu" class="nav-menu">
...
</ul>
</div>
</nav>
<!-- #site-navigation -->
</div>
CSS:
.main-navigation {
clear: both;
margin: 0 auto;
max-width: 1300px;
min-height: 35px;
position: relative;
}
...