A CSS-Tricks book, finally about CSS

After more than a decade of running CSS-Tricks, the site has never published a book under that name. Chris Coyier has written about WordPress and SVG, but never CSS — a gap that The Greatest CSS Tricks Vol. I is meant to close. The concept is a coffee-table book for CSS: each chapter stands alone and covers a single trick that he considers exceptionally clever and useful, drawn from the tricks he has encountered over the years.

A book made of URLs

The word "book" is used loosely here. No eBook format exists yet, and printing has not even been considered, though a "full book" URL collects the whole thing for printing or print-to-PDF. In practice the book is a set of URLs that work like fancy blog posts grouped together. The "Vol. I" designation is deliberate: ideas for another volume already exist.

Chapters

Some chapters cover broadly known concepts; many are based on ideas traceable to individual people, who are credited directly. The current chapter list:

  1. Pin Scrolling to Bottom
  2. Scroll Animation
  3. Yellow Flash
  4. Shape Morphing
  5. Flexible Grids
  6. Border Triangles
  7. Scroll Indicator
  8. Boxy Buttons
  9. Self-Drawing Shapes
  10. Perfect Font Fallbacks
  11. Scroll Shadows
  12. Editable Style Blocks
  13. Draggable Elements
  14. Hard Stop Gradients
  15. Squigglevision

The list may still grow, with chapters added or rearranged. Further editing is needed, but most of the book's value is already in place.

Why tricks are worth the effort

The payoff goes beyond the tricks themselves. Working through a trick reveals how a part of CSS behaves at a deeper level, offering a new lens on the nature of that CSS. Knowing what properties are capable of makes it more intuitive to reach for them later.

The tricks are like mental weights. They make writing less-tricky CSS feel easier.