Skip to content

Instantly share code, notes, and snippets.

@maxhoffmann
Created March 20, 2012 09:25
Show Gist options
  • Save maxhoffmann/2133304 to your computer and use it in GitHub Desktop.
Save maxhoffmann/2133304 to your computer and use it in GitHub Desktop.
CSS3 Colors
/* CSS3 Colors */
div {
height: 180px;
width: 180px;
margin: 10px;
padding: 10px;
float: left;
color: white;
font-size: 2em;
font-family: sans-serif;
}
#rgba { background: rgba(0,0,0,0.3); }
#hsl { background: hsl(0,50%,50%); }
#hsla { background: hsla(0,50%,50%,.5) }
<div id="rgba">rgba</div>
<div id="hsl">hsl</div>
<div id="hsla">hsla</div>
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment