Home HTML CSS JAVASCRIPT BOOTSTRAP Python Docker ML tutorial About us Privacy policy

Css Rules Cascade


Css Rules Cascade



there are two or more rule that is apply to the same elements in web page, it's important to understand what is use of css

LAST RULE:-

the two selectors are define, Here you can see the second i selector takes over the first

SPECIFICITY:-

one selector is more specific than to the other, the more specific rules will be takes over more general one. In this example:- h1 is more special than * p b is more special than p p#intro is more special than p

IMPORTANT:-

You can add !important after the any value to show that is it should be considered more important than others rule that apply to the same element in the webpages.


More Topics