Available now
HTML & CSS
Establishing the Basecamp
Nothing ever fails outright. You write a page and it appears. And yet you spend an hour moving a box eight pixels to the left, and when it finally looks right you could not explain what fixed it.
So you conclude, privately, that CSS is just like that. That conclusion is the most expensive one in web development, because it teaches you to stop asking why. CSS is not arbitrary. If the result surprises you, something is happening that you are not looking at.
After this book you can
- Predict what a layout will do before you reload the page
- Know which box moved, and which rule moved it, without guessing
- Read an unfamiliar stylesheet without opening thirty dev-tools panels
Twelve chapters · 42,000 words
- The Web Is a Document System
- Structure Before Style
- Content Comes Before Markup
- Navigation Is a Concept
- Forms Are Conversations
- Semantic HTML Is About Intent
- How Layout Really Works
- The Box Model as Boundaries
- Selectors as Relationships
- Units, Size, and Context
- Responsive Thinking
- Reading and Debugging CSS