According to the CSS specification, element selectors have a specificity of 1, class selectors have a specificity of 10, ID selectors have a specificity of 100, and a specificity of inline styles is 1000. A higher specificity will override a lower specificity, so inline styles always win. However, there is a way out. Announcement ! Important redefines all non-essential declarations. No matter what is the source of the style, he will lose something with the ad ! Important
Source: CSS Web Design by Eric A. Meyer.
geowa4
source share