I'm working on responsive column based layout with each column containing text of different length. I'm using bootstrap grid to get the responsiveness, but I have problem with setting the hight of inner div for each column in full screen mode. I need to have something similar to this picture borrowed from similar stack-overflow question.
Solutions that I could find does not work in my case since I'm dealing with the height of the grandchild of outer .
Below is simplified version of HTML and CSS code. (I've removed unnecessary styles and tags for this example.) I need the height of the ".campaign-description" div to take the full height of ".campaign-block" div.
Is it even possible to do it with this layout?
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<style>
.align-center {
text-align: center;
}
.grid {
display:flex;
}
@media screen and (max-width: 450px){
.grid {
display : block;
}
}
.campaign-block {
flex:1;
border: 1px solid;
}
.campaign-description {
flex:1;
background-color: #a05b4e;
color: #ffffff;
}
</style>
</head>
<body>
<section>
<div class="row">
<div class="col-sm-12 align-center">
<div class="align-center">
<b>Atape tehe migicur miesa telalem yiso ipipire;</b>
</div>
<div class="row grid">
<div class="col-xs-12 col-sm-6 align-center campaign-block">
<div class="st-smc-offer-image">
<img src="https://static3.grsites.com/archive/textures/misc/misc285.jpg" />
</div>
<div class="campaign-description">
Text <br />
Text <br />
Text <br />
Text <br />
<div>
<a href="http://google.com">Do smth</a>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-6 align-center campaign-block">
<div class="st-smc-offer-image">
<img src="https://static3.grsites.com/archive/textures/misc/misc285.jpg" />
</div>
<div class="campaign-description">
Text <br />
Text <br />
Text <br />
Text <br />
Text <br />
Text <br />
Text <br />
Text <br />
<div>
<a href="http://google.com">Do smth</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</body>