Understanding the Box Model part 3
Total Height of an Element
The total height of an element is calculated the same way as the width.
The example below is the same box from the previous lesson with padding, border and margin.
To summarize, Total element height = height + top padding + bottom padding + top border + bottom border + top margin + bottom margin
Comments
Post a Comment