Skip to content

Spacing — margin and padding

Handout

Space between boxes

  • Margin is the space outside a box — the gap to its neighbours.
  • margin: 30px; adds 30 pixels on all four sides, outside the border.
  • Padding pushes the content in; margin pushes other boxes away.

Handout

Log in or create account

IGCSE & A-Level