I have items like these which are flex-items inside a flexbox container.
My items in normal size:
My items squeezed:
My CSS looks like this:
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.container {
display: flex;
align-items: flex-start;
justify-content:space-between;
width: 100%;
position:relative;
}
.item {
display: inline-flex;
align-items: flex-end;
justify-content: center;
flex: 1 0;
height: 2.4rem;
border: 1px solid #000;
border-radius: 0 0 50% 50%; /* Important part */
padding-bottom: 10px;
user-select: none;
font-size: 0.9rem;
height: 250px;
margin: 0 5px;
}
.info {
margin-top: 150px;
}
<div class='container'>
<div class='item'>1</div>
<div class='item'>2</div>
<div class='item'>3</div>
<div class='item'>4</div>
<div class='item'>5</div>
</div>
Is there a way to make them look perfectly rounded (RadiusX == RadiusY, not ellipsed) in every size? Thank you in advance!