Skip to content

Instantly share code, notes, and snippets.

@james-jhang
Last active April 10, 2021 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save james-jhang/9be775070f4fdad4d5b04bc47fb74e63 to your computer and use it in GitHub Desktop.
Save james-jhang/9be775070f4fdad4d5b04bc47fb74e63 to your computer and use it in GitHub Desktop.
The CSS for Debugging CSS Layout
As title
* { background-color: rgba(255,0,0,.2); }
* * { background-color: rgba(0,255,0,.2); }
* * * { background-color: rgba(0,0,255,.2); }
* * * * { background-color: rgba(255,0,255,.2); }
* * * * * { background-color: rgba(0,255,255,.2); }
* * * * * * { background-color: rgba(255,255,0,.2); }
* * * * * * * { background-color: rgba(255,0,0,.2); }
* * * * * * * * { background-color: rgba(0,255,0,.2); }
* * * * * * * * * { background-color: rgba(0,0,255,.2); }
Author: https://dev.to/gajus/my-favorite-css-hack-32g3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment