Having trouble aligning a DIV and UL horizontally? Take a look at the code snippet below:
<div class="col-md-12">
<div class="box-header">
<h4 class="box-title">Title</h4>
</div>
<ul id="menuOnglet" class="nav nav-pills">
<li class="active">Elem1</li>
<li>Elem2</li>
<li>Elem3</li>
</ul>
</div>
#menuOnglet{width:300px; margin-left:auto; margin-right:0;}
If you're encountering issues where the DIV and UL are not on the same line, check out this fiddle: HERE
Please note that I do not want to wrap my UL with another DIV. Any suggestions or solutions would be greatly appreciated. Thank you!