Group Buttons
Group buttons using the float property
Sample code: To Create Group Of Buttons
<!DOCTYPE html>
<html>
<head>
<style>
.button
{
border: none;
color: white;
padding: 14px 28px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
float: left;
cursor: pointer;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
}
.button:hover { background-color: lightgreen; color: white; }
.button1 { background-color: green; color: black; border: 2px solid green; }
</style>
</head>
<body>
<h2>Group Buttons</h2>
<p>Group buttons using the float property</p>
<button class="button button1">1</button>
<button class="button button1">2</button>
<button class="button button1">3</button>
</body>
</html>
<html>
<head>
<style>
.button
{
border: none;
color: white;
padding: 14px 28px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px;
float: left;
cursor: pointer;
-webkit-transition-duration: 0.4s;
transition-duration: 0.4s;
}
.button:hover { background-color: lightgreen; color: white; }
.button1 { background-color: green; color: black; border: 2px solid green; }
</style>
</head>
<body>
<h2>Group Buttons</h2>
<p>Group buttons using the float property</p>
<button class="button button1">1</button>
<button class="button button1">2</button>
<button class="button button1">3</button>
</body>
</html>