Get rid of Gutter in TwitterBootstrap

后端 未结 9 1416
迷失自我
迷失自我 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

    UPDATE:

    Don't see anything in the documentation either, but here is a fix:

    If you want to remove the gutter on the left and right ends of your container, you will have to add a class for the .alpha and the .omega.

    .alpha { margin-left: 0; }
    .omega { margin-right: 0; }
    

    If you want to change all the gutters:

    In the variables.less file, you can change the Gutter width:

    // GRID
    // --------------------------------------------------
    
    // Default 940px grid
    // -------------------------
    
    @gridGutterWidth: 20px;
    

提交回复
热议问题