Get rid of Gutter in TwitterBootstrap

后端 未结 9 1417
迷失自我
迷失自我 2021-02-04 11:29

Maybe I\'m crazy but is there not a way to get rid of the 20px gutter on the twitter bootstrap? For example I\'ve used frameworks that use an alpha and omega that over-ride the

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-04 12:11

    With the bootstrap you don't need a class to remove the gutter, it is removed by the .row class where you place your span divs automatically so everything sits nicely within the grid.

    .row {
        margin-left: -20px;
    }
    

    A little clarification.

    The other frameworks, such as the 960.gs grid, use an .alpha and .omega to remove the excess margin on the left or right of a grid so they can sit the grid elements nicely within a line. With the bootstrap this is not the case anymore since the grid has that excess margin removed by the .row div, which is required to have your .span divs sit nicely within the grid.

提交回复
热议问题