I am looking to achieve a specific layout using Flexbox. While I am comfortable with CSS, I want to challenge myself by learning how to implement this design using Flexbox for more concise and maintainable code.
https://i.stack.imgur.com/QDVfT.png
.banner {
width: 20%;
height: 100%;
position: relative;
float: left;
overflow: hidden;
}
.item {
height: 50%;
width: 33.33%;
float: left;
position: relative;
}
.inner-item-block {
height: 100%;
width: 80%;
float: left;
position: relative;
}
.inner-line {
border-right: 1px solid #dedede;
border-bottom: 1px solid #dedede;
height: 100%;
position: relative;
display: flex;
align-items: center; /* center child elements */
}
<div class="item-block">
<div class="banner banner3">
</div>
<div class="inner-item-block">
<div class="item">
<div class="inner-line">
</div>
</div>
<div class="item">
<div class="inner-line">
</div>
</div>
<div class="item">
<div class="inner-line">
</div>
</div>
<div class="item">
<div class="inner-line">
</div>
</div>
</div>
</div>