-
-
Save rodi01/1715487 to your computer and use it in GitHub Desktop.
The Right Way to Declare RGBa Colors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* NON RGBa BROWSERS | |
------------------------------------------------------ */ | |
#wrap { background-color: #000; } | |
#footer, | |
#header { background-color: #ccc; } | |
.section { color: #fff; } | |
/* HEADER | |
------------------------------------------------------ */ | |
#header { background-color: rgba(204,204,204,.8); } | |
#header ul { float: right; } | |
#header li { | |
float: left; | |
margin-left: 1em; | |
} | |
#header li:first-child { margin-left: 0; } | |
/* WRAP | |
------------------------------------------------------ */ | |
#wrap { | |
width: 960px; | |
margin: 0 auto; | |
background-color: (0,0,0,.7); | |
} | |
.section { | |
padding: 1em; | |
color: rgba(255,255,255,.9); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* NON RGBa BROWSERS | |
------------------------------------------------------ */ | |
#header { border: 1px solid #000; } | |
/* HEADER | |
------------------------------------------------------ */ | |
#header { border-color: rgba(0,0,0,.7); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* HEADER | |
------------------------------------------------------ */ | |
#header { | |
background-color: #ccc; | |
background-color: rgba(204,204,204,.8); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment