
1. Use four spaces for indentation.
2. Add a space before the opening brace of each declaration block.
3. The right curly brace of the declaration block should be set separately.
4. Each declaration statement: insert a space after it and no space before it.
5. All declaration sentences end with a semicolon and cannot be omitted.
Example
/* bad */
.mod-example {
padding-left: 15px
}
/* good */
.mod-example {
padding-left: 15px;
}The above is the standardized arrangement of css code. I hope it will be helpful to everyone.