The mobile and tablet layout for this grid is as follows:
[Header]
[Image]
[Content]
However, in medium/larger screen, I would like to change it to this layout
The code snippet below is created with mobile first so that it can be reordered in large screens. But the content column is not right below the header in medium/larger screens. The content column should fill the remaining height.
How to get this to the desired layout? If it is not possible by bootstrap, can I use flexbox?
.tall {
height: 150px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.2.0/sandstone/bootstrap.min.css" rel="stylesheet"/>
<div class="container text-center">
<div class="row">
<div class="col-sm-12">
<h4>Reorder columns in larger display</h4>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-6 col-md-push-6">
<div class="well">Header</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-md-pull-6">
<div class="well tall">Image</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-6 col-md-push-6">
<div class="well">Content</div>
</div>
</div>
</div>
</div>
</div>