जब कुनै element लाई style गर्न सक्ने धेरै rules हुन्छन्, दुई mechanisms ले परिणाम निर्णय गर्छन्: cascade (कुन rule जिते) र inheritance (कुन properties माता-पिता बाट तलतिर जान्छन्)।
Cascade — द्वन्द्व समाधान, क्रमानुसार
ब्राउजरले जितेको declaration छान्छ, प्राथमिकता क्रमानुसार जाँच गरी:
1. Importance → !important beats normal declarations
2. Specificity → more specific selector wins (ids > classes > elements)
3. Source order → if still tied, the LAST rule defined wins
