JSFiddle - React, Tailwind, and code Playground
by johnny000
HTML
<div class="container">
<button>Test</button>
<button>Test</button>
<button>Test</button>
</div>
CSS
button {
position:relative;
border: 1px solid rgb(210, 210, 210);
border-right-color: rgb(230, 230, 230);
background:rgb(230, 230, 230);
padding:8px 20px;
color: rgb(120, 120, 120);
font-weight:700;
float:left;
margin:0;
outline:none;
z-index:1;
}
button:hover {
box-shadow: 0 0 10px rgb(200, 200, 200);
border-color: rgb(190, 190, 190);
z-index:99;
}
button:active {
background:rgb(190,190,190);
box-shadow:inset 0 2px 2px rgb(120, 120, 120);
}
.container button:first-of-type {
border-radius: 5px 0 0 5px;
}
.container button:last-of-type {
border-radius: 0 5px 5px 0;
border-right-color: rgb(210, 210, 210);
}