Content box
noun
say it: “KON-tent BOKS” /ˈkɑntɛnt bɑks/
The innermost part of an element's box, where its text and images go. It is also the default box-sizing value, where width and height size only this part.
What is the content box?
The content box is the innermost part of the box model, where text and images go. By default, width and height size only this part.
.card { width: 200px; padding: 20px; }
/* content box: 200px wide; the whole box: 240px */
In a sentence
- “With the default content box sizing, my 200px card grew to 240px once I added 20px of padding on each side.”
Level: Novice · More CSS terms at this level
Updated