DEV Community

Calvin
Calvin

Posted on

🎥 Video Snippets: [4 => Bootstrap] 🥾

Containers are the most basic layout component in Bootstrap 4. They wrap content, providing basic padding and margin to go around content. They also help to centre content.

There are two types of containers- fluid and fixed. A fixed container always has a maximum width and is centred on the page. The maximum width changes depending on the breakpoint of the viewport. A fluid container is always 100% of the viewport width or its surrounding container if it has a max-width property on it.

Source: Bootstrap 4 Tutorial #4 - Containers

Top comments (0)