I know the answer seems easy, but I've searched everything on the internet and can not find anything.
I have 5 buttons that work with relative position. I'm curious if I can use absolute position in any way. Of course, the buttons must be flex, ie if the page is stretched, the buttons must be stretched as well (without media queries). Τhank you very much!!!.
.flexible {
display: flex;
width:100%;
}
#one, #two, #three, #four, #five {
background: purple;
color: #fff;
border: 1px solid #fff;
top:0px;
bottom:0px;
width: 100%;
height: 50px;
position:relative;
vertical-align: middle;
font-size: 30px;
text-align: center;
}
#one:hover, #two:hover, #three:hover, #four:hover, #five:hover {
background: #9a009a;
color: #fff;
}
<center class="flexible">
<button id="one">1</button>
<button id="two">2</button>
<button id="three">3</button>
<button id="four">4</button>
<button id="five">5</button>
</center>