How to Customize Bootstrap Column Widths?

前端 未结 6 810
我在风中等你
我在风中等你 2020-12-05 02:23

I have this, but I feel 4 is too big for my sidebar width and 3 is too small (it has to add up to 12).

  
6条回答
  •  一向
    一向 (楼主)
    2020-12-05 02:43

    You can use Bootstrap's own column mixins make-xx-column():

    .col-md-8half {
        .make-md-column(8.5);
    }
    
    .col-md-3half {
        .make-md-column(3.5);
    }
    

提交回复
热议问题