What does box model mean?

In web development, box model means the CSS idea that every element is a rectangular box made of content, padding, border and margin, which together decide its size and spacing.

nounCommon term

Web Development vocabulary · CSS and Layout

In Turkish: kutu modeli

Also used in: Software Engineering

How it is used

Comes up when sizes look wrong. Many projects set box-sizing: border-box so that the width includes padding and border. Browser developer tools show the box model of the selected element.

Example sentences

  1. The card is 20 pixels wider than expected; check the box model in DevTools.

  2. Once you understand the box model, spacing in CSS makes much more sense.

Common collocations

  • CSS box model
  • box-sizing
  • border-box
  • content box

More terms: CSS and Layout

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: