We continue with our examination of CSS with some real basics- formatting, writing rules, organization and the like. Nothing groundbreaking, but the basics are important in any endeavor, so here they are.
Formatting
During development I format my CSS with selectors on one line and then each property on its own line. The declarations are indented 4 spaces. I like this style because my interest is always in the properties, not the selectors. I can find any selector I need with CTRL+F
and then I can easily scan down the list of properties to do my business.
It looks like this:
Continue reading “How To Make a Web Site the Modern Way. Part 14: Formatting, Shorthand, Resets and Organization”