XML technologies / CSS / Advanced websites with CSS / Text effects and cascading / Cascading and inheritance in CSS / Origin

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

The origin principle resolves conflicts between rules declared by a page’s author and those a user applies through browser preferences or a local stylesheet. Author rules generally take precedence. There is one important exception: when competing style properties are marked with the value !important, the origin principle is reversed. User-defined settings then take precedence over page-specific ones.

When two or more competing rules apply to an element, the rule with higher priority by origin is used, provided their weights do not differ.

  

 

 

 

back to top