What I Wish I Knew About CSS When Starting Out As A Front-Ender

Writing for CSS-Tricks, Nathan Hardy recounts the point at which CSS stopped feeling like a pile of disconnected rules and started to fit together.

Looking back, he singles out a small set of concepts as the ones that mattered to things finally all making sense:

  • The Box Model (e.g. box-sizing, height, width, margin, padding)
  • Layout (e.g. display)
  • Document Flow and Positioning (e.g. position, top, left, etc.)

Hardy had described the same experience a few years earlier as his ah-ha moment, framing it as a couple of concepts that felt like an unlocking of real power:

• Every page element is a box.
• I can control the size and position of those boxes.
• I can give those boxes background images.

He wasn't alone in that. Others shared their own ah-ha moments as well, and again.

"It's really the deal," Hardy writes.

Direct Link →