Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 6
    Indentation, in my experience, should match syntax, not semantics. By indenting further, many coders might briefly think that it's somehow part of the same syntactical rule that was above, decreasing code readability even if it's meant to improve semantic readability. LESS, a CSS transpiler, happens to make this easier by actually providing special syntax for the above situation, in which the first curly brace does not close. Commented Apr 7, 2016 at 13:38
  • 2
    There css preprocessors that support nesting, which is similar to what you want, but without being as ugly. Commented Apr 7, 2016 at 13:42