My HTML code contains ul elements, as shown below:
<ul class="nav" id="loadCategories">
<li class="sub-menu"><a href="#">Search by category</a>
<ul class="">
<li><a href="#">Food</a></li>
<li><a href="#">Sports</a></li>
<li><a href="#">Personal</a></li>
</ul>
</li>
<li class="sub-menu"><a href="#">Search by city</a>
<ul class="">
<li><a href="#">Mumbai</a></li>
<li><a href="#">Bangalore</a></li>
<li><a href="#">Personal</a></li>
</ul>
</li>
</ul>
Now, I would like to add a button just below this ul
. However, when I insert the following code, it causes layout issues:
<input type="button" class="signout_btn" value="Sign Out" id="btnSignOut">Signout</input>
Is there a way I can include my button as a li
element to maintain the same appearance with CSS?
Check out the fiddle for reference. The button should resemble the style of the ul
element.