I currently have a dropdown User menu:
<ul class="dropdown-menu">
<li><a href="javascript:void(0)"> Profile</a></li>
<li><a href="javascript:void(0)"><span class="badge badge-success pull-right">5</span> Settings </a></li>
<li><a href="javascript:void(0)"> Lock screen</a></li>
<li class="divider"></li>
@using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
{
@Html.AntiForgeryToken()
<li><a href="javascript:document.getElementById('logoutForm').submit()"> Logout</a></li>
}
</ul>
However, when I add the @Html.BeginForm
, it messes up the style of my dropdown.
https://i.sstatic.net/saGev.png
Does anyone have any suggestions on how I can prevent this from happening without compromising the style of my dropdown menu?