My website has a navigation menu that looks like this:
https://i.stack.imgur.com/1R8mv.png
However, when I click on a menu item, the link container inherits the width of the dropdown menu. Is there a way to prevent this using purely CSS?
I am currently using Bootstrap 3.4 for my navigation.
The goal of my navigation is to have drop-down menus increase the height of the navigation div. However, by setting the dropdown menu to position:relative, the parent menu item ends up inheriting its width which is causing confusion. Any suggestions on how to solve this issue would be greatly appreciated!
If you need more information, feel free to ask. Here is a link to my jsFiddle: Here is a jsFiddle.
Below is the current code structure of my navigation:
<ul class="nav navbar-nav navbar-right">
<li class="first expanded dropdown menu-4929 active"><a href="/" title="" data-target="#" class="dropdown-toggle menu-4929 active" data-toggle="dropdown">About Us</a>
<ul class="dropdown-menu dropdown-menu-left">
<li class="first leaf menu-4936 active"><a href="/" title="" class="menu-4936 active">The Museum</a></li>
<li class="leaf menu-4937 active"><a href="/" title="" class="menu-4937 active">The Design</a></li>
<li class="leaf menu-4938 active"><a href="/" title="" class="menu-4938 active">Our Team</a></li>
<li class="last leaf menu-4939 active"><a href="/" title="" class="menu-4939 active">Work Opportunities</a></li>
</ul>
</li>
<!-- More navigation code here -->
</ul>