I understand that you said that you only prefer the css solution, but, in my opinion, what you are trying to accomplish is not what the bootstrap developers had in mind when they designed their grid. I would use javascript to insert this suction cup where you need it:
jQuery / html / css solution
I changed your columns as containers (I called em buckets)
HTML
<div class="row"> <div class="container"> <div id="leftBucket" class="col-xs-6 col-md-4"> <div id="A" class="h50">A - 50</div> </div> <div id="middleBucket" class="col-xs-6 col-md-4"> <div id="B" class="h100">B - 100</div> </div> <div id="rightBucket" class="hidden-sm col-md-4"> <div id="C" class="h75">C - 75</div> </div> </div> </div> <div id="hiddenDiv"></div>
Then I “borrowed” the approach to viewing media queries using the link in the comment below
Js
// stolen from: http://www.fourfront.us/blog/jquery-window-width-and-media-queries $(window).resize(function(){ if ($("#hiddenDiv").css("float") == "none" ){ // small screen! $('#C').appendTo('#leftBucket'); } else { //not a small screen :P $('#C').appendTo('#rightBucket'); } });
And added some rules for the hidden div (which I use to view the width of the screen) CSS
#hiddenDiv {float:left;} @media only screen and (max-width: 992px){ #hiddenDiv {float:none;} }
ps. it's good to see how people use drawn scribbles to understand their ideas, that I like to break them down for people: D
Jacob McKay
source share