My code looks like this:
<div style="text-align:center;">
<button style="float:left;" onclick="openNav()">
Osoby
</button>
<span>
Antoni Jankowski
</span>
</div>
Unfortunately text-align:center
makes it center only in the remaining space not taken by the button so its position a little too far to the right. Is it possible to just make it ignore a button? Or are there any other solutions?