Box model

Introducing the box model

Each box has a margin (this one has margin: 1em;), ...
... a border (again, 1em), ...
... and padding (you guessed it: 1em).

Note that, in each case, the content area - the part of the box used to display text - is identical.


Tweet

Comments

Sat 10 Sep 2011 12:43

nilesh

nilesh said:

Thank you for this!

p.s. you should update this place frequently.

Leave a comment