The first week of The CSS Codex was about laws. Not suggestions. Not habits. Not tricks passed from developer to developer in dimly lit forums at two in the morning. Laws. CSS is often described as simple, yet many developers experience it as unpredictable. A rule is written. The browser refreshes. The result is something completely different from what was expected. A color refuses to change. A margin disappears. A layout bends in ways that seem impossible to explain. In those moments CSS can feel like wild magic. But wild magic is simply what structured systems look like before their rules are understood. Week 1 focused on revealing those rules.…


