Better HN
topnewbestaskshowjobs
Log inSign up

throw34889

5 karma · joined Sep 27, 2026 (2mo ago) · 1 submissions

Submissions

comment 2mo ago · link · parent

For debugging CSS, I prefer something along the lines of:

    * {
      outline: 1px solid hotpink !important;
      outline-offset: -1px !important;
    }
As in most cases the above snippet doesn't reflow content.

Exercise to the reader is to turn the above into a javascript bookmarklet toggle, and to add support for shading margins and padding.