I need to centre a row of three buttons in the middle of a page, so the three are beside each other horizontally with no space between them. I've tried so many different methods of centring but to no avail.
div.centre {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 0;
margin-bottom: 0;
align-content: center;
text-align: center;
}
div.bottomwhitespace {
padding-bottom: 100pt;
padding-top: 100pt;
}
.btn-group .button {
background-color: #4CAF50;
/* Green */
margin-top: 35pt;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
font-size: 16px;
cursor: pointer;
float: left;
display: inline-block;
}
.btn-group .button:hover {
background-color: #3e8e41;
}
<div class="bottomwhitespace" class="centre">
<div class="btn-group">
<button class="button">My first button</button>
<button class="button">My second button</button>
<button class="button">My third button</button>
</div>
</div>