Created
December 20, 2018 02:32
-
-
Save frankfaustino/9df4ac76d7f2a49cd44be1f13d902e55 to your computer and use it in GitHub Desktop.
Ordering CSS Properties
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
/* | |
1. Layout Properties (position, float, clear, display) | |
2. Box Model Properties (width, height, margin, padding) | |
3. Visual Properties (color, background, border, box-shadow) | |
4. Typography Properties (font-size, font-family, text-align, text-transform) | |
5. Misc Properties (cursor, overflow, z-index) | |
*/ | |
.example { | |
/* layout */ | |
display: inline-block; | |
/* box-model */ | |
margin: 1em 0; | |
padding: 1em 4em; | |
/* visual */ | |
color: #fff; | |
background: #196e76; | |
border: 0.25em solid #196e76; | |
box-shadow: inset 0.25em 0.25em 0.5em rgba(0, 0, 0, 0.3), 0.5em 0.5em 0 #444; | |
/* typography */ | |
font-size: 3em; | |
font-family: Avenir, Helvetica, Arial, sans-serif; | |
text-align: center; | |
text-transform: uppercase; | |
text-decoration: none; | |
/* miscellaneous */ | |
z-index: 8; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment