Hakan Gundogan
Hakan Gundogan

Reputation: 277

css - how to regulate a form like inherit

<ul>
<li><a href="{{ route('dashboard') }}">Panel</a></li>  
<li><a href="{{ route('contact') }}">Contact</a></li>
<li><form style="display: inline;" method="POST" action="{{ route('logout') }}">
  <button type="submit">Logout</button>
 @csrf
</form></li>
</ul>

This is my codes. But it seems like below:

enter image description here

How can i do like this:

enter image description here

If i use button and form instead of a it's not tidy. If you help me i will be glad.

Upvotes: 0

Views: 30

Answers (1)

Mohamed Zahour
Mohamed Zahour

Reputation: 338

You can use margin-top. For example :

margin-top: 5px;

Upvotes: 1

Related Questions