What is the "Box Model" in CSS? Which CSS properties are a part of it?


The CSS box model is fundamental to understanding layout and sizing and such. It's made up of:

  • Width and height (or in the absence of that, default values and the content inside)
  • Padding
  • Border

Margin is related but not technically a part of it. I would give extra points for knowing/mentioning that, but not take away and points for including it.


© 2017