Skip to content

Instantly share code, notes, and snippets.

@illycz
Last active December 25, 2015 07:49
Show Gist options
  • Save illycz/6941993 to your computer and use it in GitHub Desktop.
Save illycz/6941993 to your computer and use it in GitHub Desktop.
Basic CSS Sort Order
position
top
right
bottom
left
z-index
display
visibility
float
clear
overflow
overflow-x
overflow-y
box-sizing
margin
margin-top
margin-right
margin-bottom
margin-left
padding
padding-top
padding-right
padding-bottom
padding-left
min-width
min-height
max-width
max-height
width
height
border
border-spacing
border-collapse
border-width
border-style
border-color
border-top
border-top-width
border-top-style
border-top-color
border-right
border-right-width
border-right-style
border-right-color
border-bottom
border-bottom-width
border-bottom-style
border-bottom-color
border-left
border-left-width
border-left-style
border-left-color
border-radius
background
background-color
background-image
background-attachment
background-position
background-position-x
background-position-y
background-clip
background-origin
background-size
background-repeat
box-shadow
color
list-style
list-style-position
list-style-type
list-style-image
content
vertical-align
text-align
text-indent
text-justify
text-transform
text-shadow
white-space
word-spacing
letter-spacing
font
font-weight
font-style
font-variant
font-size-adjust
font-stretch
font-size
font-family
line-height
opacity
cursor
zoom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment