I am struggling to center-align the dropdown menu within its parent element when opened with hover. I have attempted using text-align: center for all .nav .navbar li elements, but it did not work. I also tried setting margin and left: 50% for the entire ul.dropdown-menu, but that also proved ineffective. Here is the snippet of HTML code:
<ul class="nav navbar-nav navbar-right" id="headerDropdowns">
<li><div class="btn-toolbar">
<div class="btn-group">
<button class="btnCustom" data-toggle="dropdown" data-hover="dropdown" data-delay="1000">Our Difference</button>
<ul class="dropdown-menu">
<li><a tabindex="-1" href="#">Made in the USA</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Human Grade</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Ingredients Fresh</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">USDA Meats</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Our Story</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Compare</a></li>
</ul>
</div>
</li>
</ul>
Could you advise me on which class (dropdown-menu, or nav navbar-nav) I should focus on for aligning the dropdown menu to the center, and what specific styling properties should I apply?