Is there a way in Bootstrap to split a column on small screens?
You could do something like this:
Bootply Demo
HTML:
<div class="container-fluid">
<div class="row">
<div class="upper col-sm-3" style="background:red">
<h3>I want to be <b>above</b> the main content on small screens!</h3>
</div>
<div class="col-sm-9 col-sm-pull-right">
<h1>Main content</h1>
<p>Lorem ipsum dolor sit amet</p>
<p>Lorem ipsum dolor sit amet</p>
<p>Lorem ipsum dolor sit amet</p>
<p>Lorem ipsum dolor sit amet</p>
<p>Lorem ipsum dolor sit amet</p>
</div>
<div class="lower col-sm-3" style="background:green">
<h3>I want to be <b>below</b> the main content on small screens!</h3>
</div>
</div>
</div>
CSS:
@media (min-width: 768px) {
.col-sm-pull-right {
float: right;
}
}
.lower {
clear: left;
}
Bootstrap: reorder 3 columns on small screens
Assuming "A" is taller as in your picture, just use pull-right
on the other columns, and col-xs-12
to ensure full width on mobile...
Demo
<div class="row">
<div class="col-xs-12 col-md-6 pull-right">
<div>
B
</div>
</div>
<div class="col-xs-12 col-md-6">
<div>
A
</div>
</div>
<div class="col-xs-12 col-md-6 pull-right">
<div>
C
</div>
</div>
</div>
Demo
Related Topics
Margin-Top Percentage Does Not Change When Window Height Decreases
How to Nest Media Queries Within Media Queries
Css: How Is Height of Block-Elements Calculated
Has the ::-Webkit-Selection Selector Ever Been Supported
CSS Menu - Keep Parent Hovered While Focus on Submenu
Which One Is Faster: Hex Color Codes or Color Names
Remove Underline from Part of a Link
How a CSS Pixel Size Is Calculated
How to Apply Box-Shadow on All Four Sides
How to Display User Profile Image in Circle
Why Doesn't This CSS Transition Work on Svg Inside an Anchor
CSS Fluid Layout: Margin-Top Based on Percentage Grows When Container Width Increases
Clip-Path on Chrome Leaves a Strange Line on the Edge
How to Force This CSS Grid to Wrap to a New Line Without Specifying Minmax Sizes
How to Use Transform-Origin in Conjunction with Svgs
How to Suppress Certain CSS Errors in Aptana Studio 3