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
cssscssreadabilityreset
Reset numeric CSS properties to 0, not unset
For numeric properties like margin/padding, prefer an explicit 0 over unset for clarity and predictability.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codescss
| 1 | .info { |
| 2 | margin-bottom: unset; |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .info { |
| 2 | margin-bottom: 0; |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)