This article explores the complexities of how CSS computes the width and height dimensions of elements. Inline elements behave differently when it comes to The Box Model and how their dimensions are computed. After that, we’ll look at the relationship between parent and child elements, and how they affect the computed dimensions.

10m read timeFrom css-tricks.com
Post cover image
Table of contents
The basicsThe curious case of inline elementsParent and child elementsdisplay: inline and inline-blockCyclic percentage sizeM&Ms: theAdding
2 Comments

Sort: