Show HN: I wrote a book about Debugging CSS
debuggingcss.com
debuggingcss.com
I have always wanted to have a resource which fully explains how to debug CSS (using DevTools) and contains a list of most common CSS issues. This book aims and delivers this.
The book teaches you how to leverage the full potential of the browser DevTools to find CSS bugs, and details the most common issues.
Who can read this book? With this book, you will learn something new and different (regardless of your level).
Checkout the free preview: https://debuggingcss.com/files/debugging-css-sample.pdf
Book website: https://debuggingcss.com/
Also: in your table of contents multiple wrapping it up sections have the page number 99, at least in the preview
Separately on topic, CSS debugging is a hard thing to put in book form, and there is a lack of materials on the web on CSS (stack overflow which is usually great for programming languages, is not as good for front end design in my opinion), so for those learning CSS, or aspiring to be web developers, this could be a great starting resource.
I have tried many options (Paged.js, github books,rdoc,pandoc) and I have never been satisfied with any of them, the process is either very complicated or the books look like crap.
BUT what I realize is my old friend Latex. I’m reverting back to that now, and trying to build a bridge between HTML/CSS and Latex.
Here are some examples from Springer's text books (Note, they're meant to be printed so the margins are set accordingly):
TOC: https://i.imgur.com/gREO73C.png
Content: https://i.imgur.com/1zFmWgV.png
However in defense of the main book of this thread - the style of its formatting I think is well suited for web developers and the like, having less information on the page makes the problem a bit less daunting for beginner readers.
It also increases the page count, which is a good marketing strategy for the publisher. I think most ebooks in general, particularly in web dev space, are void of quality content; so while I completely understand and see your perspective, I think in the context of what is out there, this book is a good effort.
I personally would also write a more condensed guide (actually I did :D see here: https://github.com/ashok-khanna/common-lisp-by-example), but that’s just you and me having similar style choices :)
I need to copy that springer style, it’s beautiful too!
And overflow: hidden is an old workaround for float-based layouts that should never be used in 2020 unless you’re debugging a legacy project. And even in that case, you should be using a proper clearfix instead.
Position relative can help with z-index issues.
Also, I’ve never dealt with float based layouts but I can tell you overflow hidden is useful outside of that context.
always use flexbox first before position relative
https://github.com/mrmrs/pesticide https://addons.mozilla.org/en-US/firefox/addon/pesticide-css...
It's basically the more sophisticated way of putting a border on everything. The hover interactions are great for revealing elements you didn't think you were hovering over.
One of my favourite thing about Stack Overflow is how you get a whole variety of answers. Often the best one isn't the accepted or most highly upvoted answer, but it contains an explanation of why you ought to do it like that which (even if you didn't already know enough to judge) is often enough to make you pick it.