It makes sense when you design it, thinking about what it will look like on mobile devices in the first place. A simple right and right lesson, as well as right classes and architecture, and you donβt have any media hacks at all.
Disclaimer: be careful, as the only drawback is the loss of the sequence of tabs A1-B1-B2-B3;)
See code
<div class="container"> <div class="col-xs-12 col-md-6 pull-right"> <div class="box">B1</div> </div> <div class="col-xs-12 col-md-6 pull-left"> <div class="box a1">A1</div> </div> <div class="col-xs-12 col-md-6"> <div class="box">B2</div> </div> <div class="col-xs-12 col-md-6"> <div class="box">B3</div> </div> </div>
CSS (this is only for demo decorations and markup boxes. You will not need this, except for no-padding reset)
.container div{ padding:0; } .box{ background:red; height:40px; color:#fff; padding:10px; text-align:center; border:1px solid #111; } .box.a1{ background:blue; height:120px; }
Watch the demo
source share