Home >> Tutorials/FAQs >> CSS Tutorials >> Index
CSS Tutorials - CSS Cascading Order Rules
By: FYICenter.com
(Continued from previous topic...)
What Are the CSS Cascading Order Rules?
The most important cascading order rules are:
- A specified CSS definition wins over a default CSS definition in the browser.
- A CSS definition with a contextual selector wins over a CSS definition with a tag selector.
- A CSS definition with a class selector wins over a CSS definition with a contextual selector.
- A CSS definition with an id selector wins over a CSS definition with a class selector.
- A CSS definition included in the HTML tag instance wins over other CSS definitions.
- A later CSS definition wins over an earlier CSS definition.
Note that cascading order rules are applied in the order as listed above.
(Continued on next topic...)
- What Is CSS (Cascading Style Sheets)?
- What Is the Basic Unit of CSS?
- How Many Ways to Attach CSS to HTML Documents?
- How To Include CSS Inside an HTML Tag?
- How To Include CSS Inside the HEAD Tag?
- How To Store CSS Definitions in External Files?
- How Many Ways to Select HTML Tag Instances?
- What Is a Class Selector?
- What Is an ID Selector?
- What Is a Contextual Selector?
- What Is a Group Selector?
- What Is a Mixed Selector?
- What Are the Pseudo Classes on <A> Tags?
- How To Group CSS Definitions Together?
- What Is Style Property Inheritance?
- What Is CSS Cascading?
- What Are the CSS Cascading Order Rules?
- How To Remove the Top White Space of Your Web Page?
- How To Set Different Text Fonts Inside Tables?
- How To Use Class Selectors to Differentiate Tag Instances?
- How To Use IDs to Override Classes?
|