Can someone help me troubleshoot this codepen with the .inner-wrp
div (dark red) fitting under the lightblue .top-right
div?
.purple {
background: purple;
}
.green {
background: green;
}
.lightblue {
background: lightblue;
}
.darkred {
background: darkred;
}
.lightbrown {
background: lightbrown;
}
.orange {
background: orange;
}
.outer-wrp {
width: 100%;
height: 100vh;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
}
.outer-wrp .left-side {
height: 100%;
width: 500px;
display: inline-block;
}
.outer-wrp .top-right {
width: calc(100vw - 500px);
vertical-align: top;
display: inline-block;
height: 90px;
}
.outer-wrp .inner-wrp {
width: calc(100% - 500px);
display: block;
height: calc(100% - 90px);
float: right;
}
.outer-wrp .inner-wrp .inner-left {
display: inline-block;
width: calc(100% - 200px);
height: 100%;
}
<div class="outer-wrp purple">
<div class="left-side green"></div>
<div class="top-right lightblue"></div>
<div class="inner-wrp darkred">
<div class="inner-left brown"></div>
<div class="inner-right orange"></div>
</div>
</div>
</div>
https://i.sstatic.net/rujRr.png
I'm using align-self: flex-end
on the .inner-wrp
, but it's still getting overlapped by the green .left-side
div.
Any ideas on how to get it positioned correctly under the light blue div on the right side?