Skip to content

Instantly share code, notes, and snippets.

@GabeStah
Created December 11, 2015 06:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GabeStah/5f6a0fa14b88df8e6274 to your computer and use it in GitHub Desktop.
Save GabeStah/5f6a0fa14b88df8e6274 to your computer and use it in GitHub Desktop.
Alphabetize Properties
/* 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