Syllabus

  1. 01The Box ModelEvery element is a box of content, padding, border and margin. Size boxes, draw borders, add inner and outer space, centre blocks with auto margins, and inspect it all in developer tools.6 lessons
    1. 01The Four Layers of a Box
    2. 02How Big Is a Box?
    3. 03Borders and Corners
    4. 04Padding and Margin
    5. 05Inspecting Boxes in DevTools
    6. 06The Box Model Quiz
  2. 02Changing the Box ModelSwitch to border-box sizing, keep boxes flexible with minimum and maximum sizes, deal with overflowing content, and hide elements the right way.4 lessons
    1. 01Border-box Sizing
    2. 02Minimum and Maximum Sizes and Overflow
    3. 03Hiding Elements
    4. 04Sizing and Hiding Quiz
  3. 03Display and PositioningControl how boxes flow with display, nudge and pin them with relative and absolute positioning, keep them in view with fixed and sticky, layer them with z-index, and wrap text around them with floats.6 lessons
    1. 01Block, Inline and Inline-block
    2. 02Relative and Absolute Positioning
    3. 03Fixed and Sticky
    4. 04Layering with z-index
    5. 05Float and Clear
    6. 06Display and Positioning Quiz
  4. 04Project and ReviewStyle the hostel's rooms page with the box model and positioning, then review the course with a quiz.2 lessons
    1. 01Project: The Rooms Page
    2. 02Review Quiz