Code24Lab
Web Development Intermediate

CSS Layout: Flexbox, Grid & Responsive Design

Play the browser's layout engine: calculate flex-grow and flex-shrink, grid tracks with fr, minmax and auto-fill, positioning, media queries, clamp() and custom properties for a fictional plant shop, with every answer checked as you go.

22 lessons 22 labs Certificate

  • One-time payment
  • Instant access right after payment
  • Secure checkout with Stripe

About this course

In this intermediate course you play the browser's layout engine. For a fictional plant shop you calculate what real CSS produces: how flex-grow and flex-shrink share space, how justify-content and auto margins place items, how grid tracks with px, %, fr, minmax() and repeat(auto-fill) resolve, where line numbers, span and named areas put items, and how absolute, sticky and z-index behave. Then you make it responsive with mobile-first media queries, fluid containers, aspect-ratio, rem, em, vw, clamp() and custom properties. Twenty-two hands-on labs check every answer, and a final exam leads to your certificate.

Lessons

  1. Box Sizing Refresher: How Wide Is a Card Really?LabFree
  2. Normal Flow & Collapsing MarginsLab Locked
  3. Flex Containers, Axes & justify-contentLab Locked
  4. flex-grow: Sharing the Free SpaceLab Locked
  5. flex-shrink: When the Items Do Not FitLab Locked
  6. The flex Shorthand: flex: 1, auto and noneLab Locked
  7. flex-wrap & gap: Rows of CardsLab Locked
  8. Cross-Axis Alignment & Auto MarginsLab Locked
  9. Grid Tracks: px, % and frLab Locked
  10. minmax(): Flexible but Bounded TracksLab Locked
  11. repeat(auto-fill) vs repeat(auto-fit)Lab Locked
  12. Placing Items: Lines, span & Negative NumbersLab Locked
  13. Named Areas with grid-template-areasLab Locked
  14. The Implicit Grid: grid-auto-rows & Auto-PlacementLab Locked
  15. position: relative, absolute & stickyLab Locked
  16. z-index & Stacking ContextsLab Locked
  17. Units That Scale: rem, em, vw & clamp()Lab Locked
  18. Media Queries & Mobile-First BreakpointsLab Locked
  19. Fluid Containers & aspect-ratioLab Locked
  20. Custom Properties: var(), Inheritance & calc()Lab Locked
  21. Transitions: Duration, Delay & StaggeringLab Locked
  22. Capstone: The Responsive StorefrontLab Locked