CSS: style and layout
CSS decides how HTML looks: colours, sizes, spacing and layout. Each lesson shows a small sample page. Write CSS rules in the editor, press Run to see them applied, and press Test to check your work.
Lessons go in order, from easiest to harder.
- 1Rules: selector and declarationsβ done
- 2Selectors: element, class, idβ done
- 3Colours and textβ done
- 4Fonts and text styleβ done
- 5The box model: padding, border, marginβ done
- 6Borders and rounded cornersβ done
- 7Backgroundsβ done
- 8display: block, inline and noneβ done
- 9Pseudo-classes: hover and focusβ done
- 10Transitions: smooth changesβ done
- 11Flexbox: arranging items in a rowβ done
- 12Grid: rows and columnsβ done
- 13Positioningβ done
- 14Responsive design with media queriesβ done