Twitter Bootstrap - add top space between rows

前端 未结 19 2426
孤独总比滥情好
孤独总比滥情好 2020-11-28 17:17

How to add margin top to class=\"row\" elements using twitter bootstrap framework?

19条回答
  •  被撕碎了的回忆
    2020-11-28 17:57

    If you're using BootStrap 3.3.7, you can use the open source library bootstrap-spacer via NPM

    npm install bootstrap-spacer
    

    or you can visit the github page:

    https://github.com/chigozieorunta/bootstrap-spacer
    

    Here's an example of how this works to space rows using the .row-spacer class:

    If you'd require spaces between columns, you can also add the .row-col-spacer class:

    And you can also combine various the .row-spacer & .row-col-spacer classes together:

提交回复
热议问题