How to Customize Bootstrap Column Widths?

前端 未结 6 804
我在风中等你
我在风中等你 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:45

    you can customize bootstrap stylesheet, as in:

    .col-md-8{
      width: /*as you wish*/;
    }
    

    Then, set the media query for that too, as in:

    @media screen and (max-width:768px){
      .col-md-8{
         width:99%;
       }
    }
    

提交回复
热议问题