paint-brush
Here’s All You Need to Know About the CSS Box Modelby@smpnjn
1,091 reads
1,091 reads

Here’s All You Need to Know About the CSS Box Model

by Johnny Simpson6mJuly 16th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The CSS box model is a term thrown around in CSS with very little context, but is probably the most fundamental things you can know in CSS. The box model determines the size, margin, and padding of any object on the page. It also refers to the weird way CSS handles 'inline' and 'block' content. In HTML, every element creates a box, such as span and p, which is in line with text. Block elements have a fixed width and height, while inline elements are within lines of text, meaning content floating beside them.

People Mentioned

Mention Thumbnail

Company Mentioned

Mention Thumbnail
featured image - Here’s All You Need to Know About the CSS Box Model
Johnny Simpson HackerNoon profile picture
Johnny Simpson

Johnny Simpson

@smpnjn

Product, Engineering, Web

About @smpnjn
LEARN MORE ABOUT @SMPNJN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Johnny Simpson HackerNoon profile picture
Johnny Simpson@smpnjn
Product, Engineering, Web

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite