Skip to content

Container

Mika Berglund edited this page Mar 1, 2020 · 3 revisions

Container Component

The Container component is the foundation for many layout configurations in Bootstrap.

Inheritance

Container : BootstrapComponentBase

Parameters

Name Type Description
Type ContainerType The type of container.

Related Components

The following components are typically used with the Container component.

Examples

Code samples for different kinds of containers in Bootstrap. See ContainerType for details on different types.

Basic Containers

Shows you how to create the two basic containers.

<Container>Fixed Width (default)</Container>
<Container Type="ContainerType.FixedWidth">Fixed Width</Container>
<Container Type="ContainerType.Fluid">Fluid</Container>

Responsive Containers

Bootstrap also support responsive containers.

<Container Type="ContainerType.SM">SM</Container>
<Container Type="ContainerType.MD">MD</Container>
<Container Type="ContainerType.LG">LG</Container>
<Container Type="ContainerType.XL">XL</Container>

Clone this wiki locally