Dueling Declarations: Following the Cascade
Following on the tail of my previous article on CSS 2 selectors, this time we’re going to examine what happens when rules collide. When two or more different rule sets select the same element in the document tree and have declarations that try to set the same property, how does the browser know which one to apply? Which declaration will override the others? These are the questions that put the “cascade” in Cascading Style Sheets.
Continue reading Dueling Declarations: Following the Cascade »



















