How to divide bootstrap row into 5 equal parts?

前端 未结 10 1104
挽巷
挽巷 2020-12-09 18:50

I want to divide bootstrap row into 5 equal parts. It includes 12-col-md, so how i can divide it into equal 5 parts?

Can anyone h

10条回答
  •  不思量自难忘°
    2020-12-09 19:40

    You can customize the css of bootstrap. You need import the scss files in a your own custom.scss file. Then you have to use compile custom.scss to css in another file. For ex: custom.css. Checkout this link for more detailed information. Bootstrap Theming

    In custom.scss file

    $grid-columns:15;
    @import "node_modules/bootstrap/scss/bootstrap";
    

    Then you can use col-{breakpoint}-3 in your project to have 5 equal width columns.

    CAREFUL

    This will be global. You have to change other files too if you have used default 12 point grid system elsewhere in your project.

提交回复
热议问题