I have two form buttons that are stretched out to my container. and it is displayed line by line. Is there any way to make it side by side and centralised?
.submit1 {
background-color: #008CBA;
color: white;
text-align: center;
display: inline-block;
font-size: 18px;
border: none;
}
.submit2 {
background-color: #BA002D;
color: white;
text-align: center;
display: inline-block;
font-size: 18px;
border: none;
}
<html>
<body>
<form action="listingsPage.php" method="post">
<input type="submit" value="Express Interest" class="submit1">
</form>
<form action="listingsPage.php" method="post">
<input type="submit" value="Back to Listings" class="submit2">
</form>
</body>
</html>
Image of Output: https://ibb.co/rctwhTH