Skip to content

Instantly share code, notes, and snippets.

@florentb
Created March 24, 2014 12:34
Show Gist options
  • Save florentb/9739285 to your computer and use it in GitHub Desktop.
Save florentb/9739285 to your computer and use it in GitHub Desktop.
Different depth of nodes will use different colour allowing you to see the size of each element on the page, their margin and their padding. Now you can easily identify inconsistencies.
* { 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); }
@florentb
Copy link
Author

credits goes to @kuizinas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment