Skip to content

Instantly share code, notes, and snippets.

@david-pm
Created September 10, 2019 01:40
Show Gist options
  • Save david-pm/f8f6309c5eb688ee4b8680766ae9ba8a to your computer and use it in GitHub Desktop.
Save david-pm/f8f6309c5eb688ee4b8680766ae9ba8a to your computer and use it in GitHub Desktop.
Highlights your background to help when working with layouts
// stolen from: https://dev.to/gajus/my-favorite-css-hack-32g3
* { 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); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment