DEV Community

David Chappell
David Chappell

Posted on

1

What blue eggs taught me about the CSS Box Model

Image descriptionSo there I was in my kitchen. I opened the fridge to find a tray full of blue painted hard boiled eggs.

"What does this all mean?" I said to myself? 🧐 Searching for an answer I cracked open a blue egg and then it hit me.

Image description

The egg yolk is the content, the egg white is the padding, the shell is the border, the blue paint is the margin

There it is, that's a simple analogy of the CSS box model.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay