Is there a way to align two buttons next to each other without using floating?
I have encountered an issue where adding a width to one of the buttons causes it to jump down and be on a different line than the other button.
The buttons are centered, so they cannot be floated.
Any suggestions on how to achieve this alignment without using floating?
.home_topbar .more_information, .home_topbar .order_now {
margin: 80px 0 0;
}
.home_topbar .more_information {
margin-right: 15px;
width: auto;
}
.home_topbar .order_now {
margin-left: 15px;
width: 400px;
}
.button {
display: inline-block;
height: 60px;
padding: 0 15px 0 30px;
color: #FFF;
border-radius: 5px;
background: #000;
text-align: left;
font-weight: 400;
color: #FFF;
font-size: 1.2em;
line-height: 60px;
}
<a href="" class="more_information button">
abc
</a>
<a href="" class="order_now button">
def
</a>