Recall & Review
beginner
What is the purpose of the <code>.container</code> class in Bootstrap?The <code>.container</code> class creates a fixed-width layout that adjusts its width based on the screen size, centering the content with responsive padding.Click to reveal answer
beginner
How does
.container-fluid differ from .container in Bootstrap?.container-fluid creates a full-width layout that always spans the entire width of the viewport, regardless of screen size.Click to reveal answer
beginner
Which Bootstrap container type would you use to make your content stretch edge-to-edge on all screen sizes?
Use
.container-fluid to make content stretch edge-to-edge on all screen sizes.Click to reveal answer
intermediate
What happens to the width of a
.container when the screen size changes?The width of a
.container changes at predefined breakpoints to keep content centered and readable, with fixed max widths for each screen size.Click to reveal answer
intermediate
Why might you choose
.container over .container-fluid in a web page layout?Choosing
.container helps keep content neatly centered and easier to read on large screens by limiting width, while .container-fluid uses full width which can be overwhelming.Click to reveal answer
Which Bootstrap class creates a fixed-width container that adapts at breakpoints?
✗ Incorrect
.container creates a fixed-width container that changes width at breakpoints.What does
.container-fluid do in Bootstrap?✗ Incorrect
.container-fluid always spans the full width of the viewport.If you want your content to be centered and not stretch too wide on large screens, which container should you use?
✗ Incorrect
.container centers content with max widths to keep it readable.Which container type is best for a dashboard that needs to use all available screen width?
✗ Incorrect
Dashboards often use
.container-fluid to use full screen width.What happens to
.container width on small screens?✗ Incorrect
.container shrinks at breakpoints to fit smaller screens.Explain the difference between
.container and .container-fluid in Bootstrap and when you might use each.Think about how content width changes and why that matters for design.
You got /3 concepts.
Describe how Bootstrap containers help with responsive web design.
Consider how containers behave on phones vs desktops.
You got /3 concepts.