Suraj Suraj - 7 months ago 10
HTML Question

align button and li tag in a same horizontal line

I am trying to align a

button
and
li
in a same line as the button.

Here's the fiddle

<button type="submit" class="btn btn-gray btn-sm">Log In</button>
<ul>
<li style="list-style-type:none;">
<a class="btn btn-gray btn-sm" href="/password/recover">Forgot Password?
</a>
</li>
</ul>

Answer

add class pull-left to button

<button type="submit" class="btn btn-gray btn-sm pull-left">Log In</button>

<ul>
 <li style="list-style-type:none;"><a class="btn btn-gray btn-sm" href="/password/recover">Forgot Password?</a></li>