Lesson overview
Containers control the max width of your content and align it nicely on the page. Bootstrap breakpoints let you apply different styles at different screen sizes, using classes like p-md-5 or text-lg-start.
Learning outcomes
.container, .container-fluid, and responsive containersContainers
.container: centered layout with responsive max-width.container-fluid: full width at all sizes.container-{breakpoint}: fluid until a breakpoint, then fixed (e.g., .container-lg)Breakpoints (how to think about them)
sm = small screens and upmd = medium and uplg = large and upxl, xxl = very large and upExample: responsive container + padding
Responsive text alignment example
Practice tasks
container-fluid with a background color, but inside it place a centered .container for content.py-3 on mobile and py-5 on md and above.Quick check
.container-fluid?text-md-start mean exactly?Lesson summary
Get the latest course releases and learning insights delivered straight to your inbox each week.
By subscribing you agree to our Privacy Policy and consent to receive updates from SkillNet.