JSFiddle - React, Tailwind, and code Playground
by kongallis
HTML
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
</head>
<body>
<label class="label">
<div>this is a label</div>
<button>Btn 1</button>
<button>Btn 2</button>
<button>Btn 3</button>
</label>
</body>
</html>
</html>
CSS
html {
box-sizing: border-box;
font-size: 62.5%;
font-family: 'Georama', sans-serif;
}
body {
background-color: #555;
color: #fff;
display: flex;
justify-content: center;
height: 100vh;
align-items: center;
}
button {
margin: 2rem;
width: 200px;
height: 50px;
}
.label {
font-size: 2rem;
display: flex;
flex-direction: column;
}
@media only screen and (max-width: 600px) {
label button:nth-of-type(1) { order: 3; }
label div { display: none; }
}