ArticleπSEATTLE
Pass it along a thing worth keeping
Seattle City Council Unveils Plan To Solve Homelessness By Redefining 'Shelter' As Any Overhang
New policy counts rain shadows as temporary housing, saving millions in actual construction costs.
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
how bad code makes the web invisible
how bad code makes the web invisible
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
π©βπ»
π§βπ»
π¨βπ»
The Box Model Argument π§
The Box Model Argument π§
3 Β·
Sarah has entered the chat
Ken has entered the chat
Leo has entered the chat
π©βπ»
Sarah
ok so why does my button have weird spacing? i set margin to 10px but it's STILL too close to the text next to it
π2
π§βπ»
Ken
did you check the padding? margin is outside the element, padding is insideβthey do different things
π1
π¨βπ»
Leo
wait no. margin pushes OTHER stuff away. padding pushes the CONTENT away from the edges. completely different jobs
π€1
π©βπ»
Sarah
so if i want space between my button and the text... which one do i use??
π€3
π§βπ»
Ken
margin! that's the whole pointβmargin creates space BETWEEN elements. padding is just breathing room inside the button itself
π¨βπ»
Leo
okay but the real question is: does the margin collapse? because if both elements have margin, they don't ADD together, they COLLAPSE
π€2
π©βπ»
Sarah
WAIT WHAT. they COLLAPSE?? so if button has margin: 10px and text has margin: 10px, it's not 20px between them??
π§βπ»
Ken
only in the vertical direction tho. and only with block elements. inline stuff doesn't collapse. it's the dumbest rule in CSS
π―1
π¨βπ»
Leo
it's not dumb if you understand the box model! margins collapse to prevent weird gaps. it's actually elegant once it clicks
π©βπ»
Sarah
so where do i put padding then? like... on the BUTTON itself right? so the text inside has space from the edges?
π‘1
π§βπ»
Ken
exactly. padding: 12px 20px and your button text won't feel suffocated. margin: 10px puts distance between the button and everything else
π¨βπ»
Leo
pro tip: if you're fighting spacing issues, open DevTools and toggle the box model view. you'll SEE the margin (orange) vs padding (green) instantly
π©βπ»
Sarah
okay that actually makes sense now. so margin = space outside, padding = space inside. simple.
π2
π§βπ»
Ken
welcome to CSS. now wait until you learn about margin: auto and why it doesn't work on inline elements π
π¨βπ»
Leo
or collapsing margins on nested divs. or that padding doesn't collapse. or literally anything
π3
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
Global Economy Grinds to Halt Over Z-Index Dispute
Global Economy Grinds to Halt Over Z-Index Dispute
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Centering A Div Without Crying
article id
829
target type
fe_component
chat target type
article_component
chat target id
7660
created at
2026-01-08T05:44:13.000000Z
updated at
2026-01-08T05:44:13.000000Z
related content
The Evolution Of Web Styling
Centering A Div For Beginners
article id
829
target type
fe_component
chat target type
article_component
chat target id
7664
created at
2026-01-08T05:44:13.000000Z
updated at
2026-01-08T05:44:13.000000Z
related content
In Memoriam
RIP To The Table Layout
The Separation Of Concerns Myth
The Separation Of Concerns Myth
article id
829
target type
fe_component
chat target type
article_component
chat target id
7667
created at
2026-01-08T05:44:13.000000Z
updated at
2026-01-08T05:44:13.000000Z
related content
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
Healthy is a moving target
Healthy is a moving target
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
Lifestyle Series-How to Change to Healthy Lifestyle Habits
Lifestyle Series-How to Change to Healthy Lifestyle Habits
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
How to Eat for Longevity: 11 Foods for a Longer, Healthier Life
How to Eat for Longevity: 11 Foods for a Longer, Healthier Life
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
The Best Vitality & Health Protocols | Dr. Rhonda Patrick
The Best Vitality & Health Protocols | Dr. Rhonda Patrick
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
Software Update Removes Battery Capacity From Three-Year-Old Models
Software Update Removes Battery Capacity From Three-Year-Old Models
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
The neon in your pocket
The neon in your pocket
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
Electronics Retailer Confirms Annual Recycling Goals Are Mostly Theoretical
Electronics Retailer Confirms Annual Recycling Goals Are Mostly Theoretical
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
Silicon Wafer Etching Specialist
Silicon Wafer Etching Specialist
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
the hidden cost of your smartphone
Text Size
β‘
Speed Reading
Press Tab
π
Read Aloud
Press A
Frustrated Home Appliance Repairman
Frustrated Home Appliance Repairman
Reading...
SPEED READING
Complete!
1 / 0
500 WPM
