I am struggling with aligning the fourth div, which has a class of "details", above the second and third div in a flex box layout. Despite my efforts, I have not been successful in achieving this alignment. Can someone please assist me?
.flex-container {
display: flex;
align-items: space-between;
height: 500px;
background-color: #f1f1f1;
width: 45%;
}
.flex-container > div {
color: white;
width: 130px;
margin: 10px;
line-height: 75px;
color:black;
font-weight:bold;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: #ffffff;
}
.calu
{
height: 49%;
align-self:flex-end;
}
.calu_ {background-color: #C90399;}
.punjj_ {background-color: #F44336;}
.punjj
{
height: 48%;
align-self:flex-end;
}
.bajet {background-color: #FE0857;}
.details
{
flex-basis: 30%;
height: 60%;
box-shadow: inset 0px 4px 6px rgba(100,100,100,0.6);
font-size: 15px;
}
.vertical
{
box-shadow: inset 0px 4px 6px #ccc;
}
.progress {
background-color: #f5f5f5;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 2px rgb(0 0 0 / 10%);
box-shadow: inset 0px 4px 6px rgba(100,100,100,0.6);
text-align: center;
font-size: 15px;
}
.progress-bar {
box-shadow: inset 0px 4px 6px rgb(100 100 100 / 60%);
}
<p><h1>The align-self Property</h1></p>
<div class="flex-container">
<div class= "progress vertical" >1
<div class="progress-bar bajet" style="height: 35.19%;"></div>
</div>
<div class= "progress vertical calu">2
<div class="progress-bar calu_" style="height: 38.65%;"></div>
</div>
<div class= "progress vertical punjj">3
<div class="progress-bar punjj_" style="height: 31.65%;"></div>
</div>
<div class="details" style="background-color:#90EE90;">4</div>
</div>
Please refer to the sample image for clarification: