JSFiddle - React, Tailwind, and code Playground
by firegroove
HTML
<div class="red_border">
<button class="box">BUTTON #1</button>
<button class="box">BUTTON #2</button>
</div>
<div class="big after_box">
<h1>
This is the DIV TITLE
</h1>
</div>
<div class="red_border">
<button class="box">BUTTON #3</button>
<button class="box">BUTTON #4</button>
</div>
CSS
.box {
float: left;
width: 200px;
height: 100px;
margin: 1em;
}
div {
border: 1px solid lime;
}
section {
border: 1px solid orange;
}
.after_box {
clear: left;
}
button {
/* border: 0; */
line-height: 2.5;
padding: 0 20px;
font-size: 1rem;
text-align: center;
color: #fff;
text-shadow: 1px 1px 1px #000;
border-radius: 10px;
background-color: rgba(220, 0, 0, 1);
background-image: linear-gradient(to top left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, 0));
box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .6), inset -2px -2px 3px rgba(0, 0, 0, .6);
}
.red_border {
border: 1px solid red;
}
.big {
height: 200px
}