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 ruleP2universalStack: css
cssborderscross-browserunits
Use 1px for hairline borders, not rem-calc(1)
Sub-pixel rem values get rounded inconsistently across browsers; use a plain 1px for thin borders.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codescss
| 1 | border-bottom: rem-calc(1) solid rgba(151, 151, 151, .1); |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | border-bottom: 1px solid rgba(151, 151, 151, .1); |
Explanation (EN)
Objašnjenje (HR)