Responsive web design aims to make web pages render well on a variety of devices
and screen sizes to ensure usability. A responsive design adapts the web-page
layout to the viewing environment.
[1]
Containers
Containers are the most basic layout element in Bootstrap and are required when
using the default grid system. Containers are used to contain, pad, and center
the content within them. While containers can be nested, most layouts do not
require a nested container.
[2]
The default php implementation for a Bootstrap container is Container.
Its constructor takes a single parameter explained in the table below. It is also
possible to create a container from anything implementing CssClassifiableContent and ContainerTypeTrait trait.
The hierarchy of a responsive grid
is ContainerRowColumn
content. On rare occasions content and column may be combined, but then there can be unintended visual consequences.
[3]
There are two ways to offset columns: responsive .offset- grid classes and
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.
[5]
There are two ways to offset columns: responsive .offset- grid classes and
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.
[5]
first
second
This site uses cookies
In order to work as intended, this site stores cookies on your device. Accepting
improves our site and provides you with personalized service. Declining results
in one cookie being placed on your device so we remember your choice.