Skip to content

Instantly share code, notes, and snippets.

@DonSchado
Created November 23, 2014 07:00
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 DonSchado/12545fc1d44b455fafe4 to your computer and use it in GitHub Desktop.
Save DonSchado/12545fc1d44b455fafe4 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); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment