I'm working on a grid layout that transitions like this https://i.sstatic.net/iU7mi.png
When the width decreases, I want it to look like this https://i.sstatic.net/O5FAd.png
This is what I have so far:
.row > div {
border: 1px solid black
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class='row'>
<div class="col-md-6">
1
</div>
<div class="col-md-5">
<div class='row'>
<div class="col-md-12">
2
</div>
<div class="col-md-12">
3
</div>
</div>
</div>
</div>