Poisonal
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.

10 months ago • 8 min read

how bad code makes the web invisible

how bad code makes the web invisible

👩‍💻
🧑‍💻
👨‍💻

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

Global Economy Grinds to Halt Over Z-Index Dispute

Global Economy Grinds to Halt Over Z-Index Dispute

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
content id
192532
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
    content id
    192536
    related content

      In Memoriam

      RIP To The Table Layout

      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
      content id
      192539
      related content

        Healthy is a moving target

        Healthy is a moving target

        Lifestyle Series-How to Change to Healthy Lifestyle Habits

        Lifestyle Series-How to Change to Healthy Lifestyle Habits

        How to Eat for Longevity: 11 Foods for a Longer, Healthier Life

        How to Eat for Longevity: 11 Foods for a Longer, Healthier Life

        The Best Vitality & Health Protocols | Dr. Rhonda Patrick

        The Best Vitality & Health Protocols | Dr. Rhonda Patrick

        Software Update Removes Battery Capacity From Three-Year-Old Models

        Software Update Removes Battery Capacity From Three-Year-Old Models

        The neon in your pocket

        The neon in your pocket

        Electronics Retailer Confirms Annual Recycling Goals Are Mostly Theoretical

        Electronics Retailer Confirms Annual Recycling Goals Are Mostly Theoretical

        Silicon Wafer Etching Specialist

        Silicon Wafer Etching Specialist

        Receipt
        the hidden cost of your smartphone

        Frustrated Home Appliance Repairman

        Frustrated Home Appliance Repairman

        More from Seattle