Chapter practice task
Task: Build a services section with a reusable card system and global typography
- Build a section with a container, a heading and a grid of six cards.
- Use a base
cardclass and acard is-featuredcombo class. - Lay out the card internals with flexbox.
- Set global styles for body text and headings, and create color and size variables.
By the end of this chapter
- You can structure any page with sections, containers and wrappers
- You use classes and combo classes in an organized way
- You can lay out anything with flexbox and grid
- Your typography and colors are consistent through global styles and variables
Quick answers for this chapter
Margin or padding?
Padding is space inside an element (including its background). Margin is space outside it. Most layout spacing is padding on sections and gaps in flex or grid.
Why use combo classes?
To create variations of a base style (like a highlighted card) without duplicating everything.
Where do I set the default font?
On the Body (All Pages) tag in the Style panel, or with font variables.