Here is my CSS and HTML.
.btn-group button {
border: 3px solid green;
padding: 10px;
background-color: #04AA6D;
/* Green background */
border: 1px solid green;
/* Green border */
color: white;
/* White text */
padding: 10px 24px;
/* Some padding */
cursor: pointer;
/* Pointer/hand icon */
float: left;
/* Float the buttons side by side */
}
.btn-group button:not(:last-child) {
border-right: none;
/* Prevent double borders */
}
/* Clear floats (clearfix hack) */
.btn-group:after {
content: "";
clear: both;
display: table;
}
/* Add a background color on hover */
.btn-group button:hover {
background-color: #3e8e41;
}
<div class="btn-group">
<button type="button" class="button1">Faucet</button>
<button type="button" class="button2">About Nano/Faucet</button>
<button type="button" class="button3">Donate</button>
</div>
I want to center these buttons under the text in the screen's center! I have tried so many things nothing works for me.