I'm currently working on a Drop Down Navigation bar using CSS and HTML. The image below represents the desired outcome I am aiming for.
One issue I am facing is that in the code, OuterTab1
and OuterTab2
are consistently positioned lower than Tab2
, even though I want them to be aligned at the same height like in the example image.
Apologies if this explanation is not very clear; you can also refer to this link for clarification: http://jsfiddle.net/442xM/
<nav>
<ul>
<li>Tab1</li>
<li>Tab2
<ul>
<li>OuterTab1</li>
<li>OuterTab2</li>
</ul>
</li>
</ul>
</nav>