CSS Theory #3: The CSS Box Model

Default behavior calculation:

Final element width = left border + left padding + width + right padding + right border

Final element height = top border + top padding + height + bottom padding + bottom border

Margin = empty space to separate one element and from another. It is not included in the final element’s width or height.

This entry was posted in Web Developer Course and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *