ich bekomme diese Button einfach nicht zentriert (horizontal zum Bildschirm)
sollte doch mit text-align: center; erledigt sein ?
sollte doch mit text-align: center; erledigt sein ?
HTML-Code:
<style> .button { background-color: #4CAF50; /* Green */ border: none; color: white; padding: 16px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 50px; margin: 4px 2px; cursor: pointer; } </style> </head> <body> <button class="button" onclick="location.href = 'logout.php';">logout</button> </body> </html>
Kommentar