Fixed Width Container

This container has a responsive fixed width.

Resize your browser window to see the width change at breakpoints.

Fluid Container

This container always spans the full width of the screen.

Container With Padding

This uses .pt-3 for extra padding at top.

Container With Border

Default border with some spacing.

Dark Background

Container with dark background and white text.

Primary Color Background

Container with primary color background.

.container-sm (full width until small breakpoint)
.container-md (full width until medium breakpoint)
.container-lg (full width until large breakpoint)
.container-xl (full width until extra large breakpoint)

End of Bootstrap 4 Containers Demo