html - Reorder div for responsive design in Bootstrap -


i using bootstrap. have row 3 blocks:

<div class="row">     <div class="span3" id="b">...</div>     <div class="span4" id="a">...</div>     <div class="span3" id="c">...</div> </div> 

so 3 blocks ordered b, a, c.

if screen width small, 3 blocks have 1 row each, , ordered b, a, c.

but want them ordered

a b c 

how can that?

try this:

<div class="row">     <div class="pull-left">         <div class="span4 pull-right" style="margin-left:0px;">a</div>         <div class="span3 pull-left" style="margin-left:0px;">b</div>     </div>     <div class="pull-right">         <div class="span3">c</div>     </div> </div> 

you might need adjust spacing bit, should provide right order desired when screen width narrower.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -