Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Evan's Preferred CSS rule order
selector
{
list-style: …; /* if applicable */
/* Box model/layout */
box-*: …;
margin: …;
padding: …;
width: …;
min-width: …;
max-width: …;
height: …;
min-height: …;
max-height: …;
/* Theme properties */
background: …;
border: …;
color: …;
direction: …;
font: …;
outline: …;
text-align: …;
text-decoration: …;
text-indent: …;
text-transform: …;
letter-spacing: …;
vertical-align: …;
word-spacing: …;
word-break: …;
word-wrap: …;
quotes: …;
page-break-*: …;
white-space: …;
/* Display */
display: …;
visibility: …;
overflow: …;
clip: …;
resize: …;
opacity: …;
table-layout: …;
position: …;
top: …;
right: …;
bottom: …;
left: …;
z-index: …;
float: …;
clear: …;
/* Transforms and animations */
transform: …;
animation: …;
transition: …;
}
@2goodfor666

This comment has been minimized.

Copy link

@2goodfor666 2goodfor666 commented May 17, 2018

How do I open these back up so I can read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.