Ask HN: Can you recommend advanced books on CSS?

11 points by zygimantasdev ↗ HN
Hello HN!

was wondering if you could recommend up-to-date books, similar material on CSS which go over best practices, advanced topics. For some reason they are hard to find. Thanks!

15 comments

[ 3.2 ms ] story [ 51.4 ms ] thread
I think you're better off reading the box model spec.
(comment deleted)
Thanks for the answer. I will check it - never thought of doing that!
CSS is an art in a very literal sense. Once you know the basic technique a book won't help you as much as seeing examples in the wild and trying to reverse engineer them. To learn the nitty-gritty nuts and bolts of CSS, try reading the CSS-Tricks blog and digging into the documentation on MDN.

Finally, to truly master CSS, learn the art of brevity. Most stylesheets I see are terribly bloated and over specified. Always ask, "Can I do this in fewer declarations? Do I really need all of these constraints? Is there a single style that will work smoothly across all sizes without media queries?"

Learn that, and you won't need a book.

Thanks for the tips! Already had been trying to understand css tricks - but always looking for more relevant information in one place - a book.
You might try: https://abookapart.com/

I read their _Responsive Web Design_ title a while back and found it helpful and concise.

I see there's a CSS3 title written by the founder of Dribbble, for example, and updated in 2015.

This stuff changes so quickly, it may also be better to follow online, as others have suggested.