Hi,
I'm using demo6, but this problem is probably in all demos.
It's quite common to have logout via POST, so would it be possible to style buttons in the dropdown menus, so it would look the same as the other menu links? something like this
<form method="post" action="/logout/">
<button type="submit" class="menu-link px-5">Sign out</button>
</form>
Hi,
The above code should work as expected:
<img src="https://i.imgur.com/6yTbsMK.png" class="w-100"/>
<img src="https://i.imgur.com/DYGpFZg.png" class="w-100"/>
Regards.
Yea, that's what I meant "the same like the regular links"
Sorry for the confusing answer
Thank you
Great! All the best with your project!
Hi,
Sure you can use the below markup:
<form method="post" action="/logout/">
<button type="submit" class="menu-link px-5 btn w-100">Sign out</button>
</form>
It does look the same, thank you!
I actually tried .btn-link before and that looked like that's not the way