Skip to content

Instantly share code, notes, and snippets.

@rdebeasi
Last active December 16, 2015 13:48
Show Gist options
  • Save rdebeasi/5443823 to your computer and use it in GitHub Desktop.
Save rdebeasi/5443823 to your computer and use it in GitHub Desktop.
This tweak allows you to remove gutters from some columns in Bootstrap 2 while leaving margins on other columns intact. (To remove gutters from all columns, just change the column and gutter variables in variables.less).
@import "mixins.less";
@import "variables.less";
.grid-no-gutter {
/* Removes margin from Bootstrap Grid. This class goes at least one level above row-fluid.
Works in Bootstrap 2. In Bootstrap 3, #grid has been removed. */
#grid > .fluid( percentage( 1 / @gridColumns ), 0 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment