I'm looking to create a tabbed menu that displays content in blocks, but I want each block to be the same height. I tried using padding and flexbox, but couldn't get it to work properly. Any suggestions on how to achieve this?
.tab-pane {
flex: 1;
padding: 80px;
}
.nav-tabs {
border-bottom: none;
display:block;
}
.nav-tabs li a {
text-decoration:none;
}
.jj-icon {
max-width: 50px;
padding-bottom: 20px;
}
.bg-blue {
background-color: blue;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container pt-200">
<div class="row">
<div class="col-6">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#home">Title 1</a></li>
<li><a data-toggle="tab" href="#menu1">Title 2 </a></li>
<li><a data-toggle="tab" href="#menu2">Title 3</a></li>
</ul>
</div>
<div class="col-6">
<div class="tab-content d-flex flex-column">
<div id="home" class="tab-pane justify-content-center bg-blue active">
<img src="images/marketing.svg" class="jj-icon">
<h3>Menu</h3>
<p>Sed vel erat ultrices, facilisis metus et, tincidunt turpis. Aenean nec lorem finibus, ornare ex sit amet, tempus nunc. Proin feugiat rhoncus nibh vel laoreet.</p>
</div>
<div id="menu1" class="tab-pane justify-content-center bg-blue fade">
<img src="images/marketing.svg" class="jj-icon">
<h3>Menu 1</h3>
<p>Faucibus, vitae posuere felis molestie. Integer vulputate euismod libero, ac dignissim arcu aliquam id. In hac habitasse platea dictumst.</p>
</div>
<div id="menu2" class="tab-pane justify-content-center bg-blue fade">
<img src="images/marketing.svg" class="jj-icon">
<h3>Menu 2</h3>
<p>Fusce sagittis urna nec ultrices rutrum. In tristique mi non tellus vulputate, nec luctus diam porttitor. Nulla porttitor sagittis placerat.</p>
</div>
</div>
</div>
</div>
</div>
Desired layout reference image: