Selasa, 17 Maret 2020

CSS: BOX MODEL

CSS BOX MODEL is how you calculate the true width and the true height.

You know that width property and height property is only set the width and the height of the content area only.

So, what is the default value of margin, border, padding, content?

Start from the outer to inner:
2x 2 x border + 2 x padding + 2 x 

Start from the outer to inner:
2x Margin + 2 x border + 2 x padding + height.

Tidak ada komentar:

Posting Komentar