Change order of divs with push/pull column in Bootstrap

前端 未结 1 1954
独厮守ぢ
独厮守ぢ 2021-01-16 11:03

I\'m trying to change the order and span of three columns using Bootstrap, depending on the device.

I\'m going for this:

相关标签:
1条回答
  • 2021-01-16 11:29

    If you want to achieve this the only way i know in this moment is without push/pull method.

    Here is my code:

    <div class="col-sm-4" style="background:blue; color:white;">Logo</div>
    
    <div class="col-sm-12 visible-xs" style="background:red; color:white;">Photo</div> 
    
    <div class="col-sm-8" style="background:green; color:white;">Nav</div>
    
    <div class="hidden-xs" style="background:red; color:white;">Photo</div> 
    
    0 讨论(0)
提交回复
热议问题