Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
frontend ruleP2stack specificStack: css
cssformattingreadability
Avoid gratuitous blank lines inside CSS rule bodies
Don't scatter blank lines between declarations inside a single CSS rule; reserve blank lines for separating rules or deliberately grouped property blocks.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codescss
| 1 | .searchBtn { |
| 2 | cursor: pointer; |
| 3 |
|
| 4 | position: absolute; |
| 5 |
|
| 6 | top: 0; |
| 7 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .searchBtn { |
| 2 | cursor: pointer; |
| 3 | position: absolute; |
| 4 | top: 0; |
| 5 | } |
Explanation (EN)
Objašnjenje (HR)