Chapter 2. CSS Style Guide
Every CSS author has his preferred way of writing code. For example, some people prefer to write each property and selector on a separate line, while others would rather have everything on one single line. Some authors never add a semicolon to the last property on a selector (because it isn't necessary); others prefer to remove the space between the colon and the value of a property. The list goes on.
These are just a few examples of how divergent CSS authoring can be from person to person—look into any CSS discussion forum and you will find endless ongoing debates on each of these topics, and many more. You will also probably come to the conclusion that no one is fully right or wrong—there are valid arguments on each ...
Get Pro CSS for High Traffic Websites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.