No floats are needed, do not start mowing at the very beginning, there is such a class .col-md-offset-2 it shifts your block into 2 sections, provided that if you .col-md-2 sections, also look at the properties .col-md-push-2 and .col-md-pull-2 these classes allow you to move blocks (to swap) this is an alternative to float
Try this option 1:
<div class="container"> <div class="row"> <div class="first col-xs-8 col-xs-offset-2">ΠΠΎΠ»ΠΎΠ½ΠΊΠ° 1 Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ .col-xs-offset-2</div> </div> <div class="row"> <div class="second col-xs-12">ΠΠΎΠ»ΠΎΠ½ΠΊΠ° 2</div> </div> </div>
option 2:
<div class="container"> <div class="row"> <div class="sidebar col-xs-2">Sidebar Right</div> <div class="first col-xs-8">ΠΠΎΠ»ΠΎΠ½ΠΊΠ° 1 Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°Π½ΠΈΠ΅ΠΌ .col-xs-offset-2</div> <div class="sidebar col-xs-2">Sidebar Right</div> </div> <div class="row"> <div class="second col-xs-12">ΠΠΎΠ»ΠΎΠ½ΠΊΠ° 2</div> </div> </div>
As for pull and push . On extra small devices (with resolution up to 768px): 1 block is above the second col-xs-12 , on devices with a resolution greater than or equal to 768px, the blocks change their size and are divided in half by col-sm-6 , the first block goes to the right col-sm-push-6 , and the second - to the left col-sm-pull-6 .
<div class="container"> <div class="row"> <div class="first col-xs-12 col-sm-6 col-sm-push-6">ΠΠΎΠ»ΠΎΠ½ΠΊΠ° 1 ΠΎΡΠΏΡΠ°Π²Π»ΡΠ΅ΠΌ Π΅Π΅ Π²ΠΏΡΠ°Π²ΠΎ Π½Π° 6 ΡΠ΅ΠΊΡΠΈΠΈ .col-sm-push-6</div> <div class="second col-xs-12 col-sm-6 col-sm-pull-6">ΠΠΎΠ»ΠΎΠ½ΠΊΠ° 2 ΠΎΡΠΏΡΠ°Π²Π»ΡΠ΅ΠΌ Π΅Π΅ Π²Π»Π΅Π²ΠΎ Π½Π° 6 ΡΠ΅ΠΊΡΠΈΠΉ .col-sm-pull-6</div> </div> </div>
All examples
<div><div class="col-md-2 column"> </div><div class="col-md-8 column">ΠΊΠΎΠ»ΠΎΠ½ΠΊΠ° 1 </div><div class="col-md-2 column"> </div></div> <div><div class="col-md-12 column">ΠΊΠΎΠ»ΠΎΠ½ΠΊΠ° 2</div></div>do you mean it? does not help, the lower div is still from the beginning of the earlier parent. - Leaverk Vands