Login from 195.168.1.1
Aliquam ex eros, imperdiet vulputate hendrerit et.
Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
Extra small <576px |
Small ≥576px |
Medium ≥768px |
Large ≥992px |
Extra large ≥1200px |
|
---|---|---|---|---|---|
Max container width | None (auto) | 540px | 720px | 960px | 1140px |
Class prefix | .col- |
.col-sm- |
.col-md- |
.col-lg- |
.col-xl- |
# of columns | 12 | ||||
Gutter width | 30px (15px on each side of a column) | ||||
Nestable | Yes | ||||
Column ordering | Yes |
Grid classes apply to devices with screen widths greater than or equal to the breakpoint sizes, and override grid classes targeted at smaller devices. Therefore, applying any.col-md-
class to an element will not only affect its styling on medium devices but also on large devices if a.col-lg-
class is not present.
How it works Bootstrap’s grid system uses a series of containers, rows, and columns to layout and align content. It’s built with flexbox and is fully responsive. Below is an example and an in-depth look at how the grid comes together.
.container
..container
for a responsive pixel width or .container-fluid
for width: 100%
across all viewport and device sizes.padding
(called a gutter) for controlling the space between them. This padding
is then counteracted on the rows with negative margins. This way, all the content in your columns is visually aligned down the left side.width
will automatically layout as equal width columns. For example, four instances of .col-sm
will each automatically be 25% wide from the small breakpoint and up. See the auto-layout columns section for more examples..col-4
.width
s are set in percentages, so they’re always fluid and sized relative to their parent element.padding
to create the gutters between individual columns, however, you can remove the margin
from rows and padding
from columns with .no-gutters
on the .row
..col-sm-4
applies to small, medium, large, and extra large devices, but not the first xs
breakpoint)..col-4
) or Sass mixins for more semantic markup.Bootstrap version 4.1.3
Appwork © 2018 created by Designing World