-
-
Save GabeStah/5f6a0fa14b88df8e6274 to your computer and use it in GitHub Desktop.
Alphabetize 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
/* Alphabetize Properties */ | |
/* Bad, properties are in random order and vendor prefixes aren't grouped. */ | |
.menu { | |
border: 1px #eee solid; | |
padding: 4em 2em; | |
-moz-border-radius: 6px; | |
-webkit-border-radius: 6px; | |
margin: 1em 2em 1em; | |
background: url('book.png') #eee repeat; | |
} | |
/* Good, properties are alphabetized and vendor prefixes follow standard property. */ | |
.menu { | |
background: url('book.png') #eee repeat; | |
border: 1px #eee solid; | |
-moz-border-radius: 6px; | |
-webkit-border-radius: 6px; | |
margin: 1em 2em 1em; | |
padding: 4em 2em; | |
} | |
/* Good, alternatively, place vendor prefixes at the top (in alphabetical order), | |
followed by standard properties. */ | |
.menu { | |
-moz-border-radius: 6px; | |
-webkit-border-radius: 6px; | |
background: url('book.png') #eee repeat; | |
border: 1px #eee solid; | |
margin: 1em 2em 1em; | |
padding: 4em 2em; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment