Here is my code and I want to change the order of buttons when we are in the mobile viewing mode. I used "column-reverse" but what if I want them to be like this? button 2 button 3 button 1 How can I customize their order?
My second question is how can i get rid of the "this is a lable" text in mobile viewing mode? I tried "display: none" but since the label class contains all the buttons as well, all the buttons will be removed.
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 {
flex-direction: column-reverse;
}
}
<!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">
this is a label
<button>Btn 1</button>
<button>Btn 2</button>
<button>Btn 3</button>
</label>
</body>
</html>
</html>