No GuttersNo Gutters The gutters between columns in our predefined grid classes can be removed with .no-gutters.
Column WrappingColumn Wrapping If more than 12 columns are placed within a single row, each group of extra columns will, as one unit, wrap onto a new line.
Order ClassesOrder Classes Use .order- classes for controlling the visual order of your content. These classes are responsive, so you can set the order by breakpoint (e.g., .order- 1.order-md-2). Includes support for 1 through 12 across all five grid tiers.
Offseting ColumnsOffseting Columns You can offset grid columns in two ways: our responsive .offset- grid classes and our margin utilities. Grid classes are sized to match columns while margins are more useful for quick layouts where the width of the offset is variable.
Offset ClassesOffset Classes Move columns to the right using .offset-md-* classes. These classes increase the left margin of a column by * columns. For example, .offset-md-4 moves .col-md- 4 over four columns.
Margin UtilitiesMargin Utilities With the move to flexbox in v4, you can use margin utilities like .mr-auto to force sibling columns away from one another.
NestingNesting To nest your content with the default grid, add a new .row and set of .col-sm-* columns within an existing .col-sm-* column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).
Sass MixinsSass Mixins When using Bootstrap’s source Sass files, you have the option of using Sass variables and mixins to create custom, semantic, and responsive page layouts.
VariablesVariables Variables and maps determine the number of columns, the gutter width, and the media query point at which to begin floating columns. We use these to generate the predefined grid classes documented above, as well as for the custom mixins listed below.
MixinsMixins Mixins are used in conjunction with the grid variables to generate semantic CSS for individual grid columns.
Customizing The GridCustomizing The Grid Using our built-in grid Sass variables and maps, it’s possible to completely customize the predefined grid classes. Change the number of tiers, the media query dimensions, and the container widths—then recompile.
Columns And GuttersColumns And Gutters The number of grid columns can be modified via Sass variables. $grid- columns is used to generate the widths (in percent) of each individual column while $grid-gutter-width sets the width for the column gutters.
Grid TiersGrid Tiers Moving beyond the columns themselves, you may also customize the number of grid tiers. If you wanted just four grid tiers, you’d update the $grid-breakpoints and $container-max-widths to something like this
Grid KatmanlarıGrid Katmanları When making any changes to the Sass variables or maps, you’ll need to save your changes and recompile. Doing so will output a brand new set of predefined grid classes for column widths, offsets, and ordering. Responsive visibility utilities will also be updated to use the custom breakpoints. Make sure to set grid values in px (not rem, em, or %).