Skip to content

Instantly share code, notes, and snippets.

@wisniewski94
Created September 5, 2019 13:25
Show Gist options
  • Save wisniewski94/b1e20e173ededfa7de291ca948f16eff to your computer and use it in GitHub Desktop.
Save wisniewski94/b1e20e173ededfa7de291ca948f16eff to your computer and use it in GitHub Desktop.
//https://medium.com/@gajus/my-favorite-css-hack-a7f447026cf2
//"The problem is that unless the element on the page has a solid background or it is a picture,
// you do not see how does it fit into the layout, e.g. most of the text nodes, pictures with
//transparency, etc."
*
background-color: rgba(255, 0, 0, 0.2)
outline: 1px solid blue
*
background-color: rgba(0, 255, 0, 0.2)
*
background-color: rgba(0, 0, 255, 0.2)
*
background-color: rgba(255, 0, 255, 0.2)
*
background-color: rgba(0, 255, 255, 0.2)
*
background-color: rgba(255, 255, 0, 0.2)
*
background-color: rgba(255, 0, 0, 0.2)
*
background-color: rgba(0, 255, 0, 0.2)
*
background-color: rgba(0, 0, 255, 0.2)
*
background-color: rgba(0, 10, 255, 0.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment