I am new at this. Trying to put 2 buttons , next to each other . Using code below, but for some reason they are coming one under the other(in 2 lines).
Any help or advise, please!
Code:
<meta name="buyer">
<html>
<head>
<style>
.btn-group button {
background-color: #4CAF50; /* 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:inline-block;
}
/* Add a background color on hover */
.btn-group button:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<div class="btn-group">
<button>button1</button>
<button>button2</button>
</div>
</body>
</html>