I am trying to build a logout button into my website, it should be on the left side in the containing <div>
. I am trying to build it in an upper <div>
that contains some text, that should not be moved away from the middle. So how do I solve this problem (is there maybe a way without using position: absolute
.text-center {
text-align: center;
}
<div class="text-center">
<button>Logout</button>
Title
</div>