• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. The Cascade > Cascading Order

5.1. Cascading Order

Cascading order is one of the fundamental features of the CSS specification. It determines how much “weight” is to be applied to a given CSS rule, based on the situation in which it appears. In essence, more specific CSS statements overrule more general ones, and if two or more CSS statements with the same weight appear in a Web page, it is the last one that is applied. This is an over-simplification, but can be a useful way to remember how things are supposed to work.

Here are the actual cascading rules, presented in more detail:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint