Specificity and The Cascade

CSS Specificity

The Sibling Combinator Adjacent Combinator The + combinator selects elements that are directly after the first element. H1 + p { } Siblings Combinator The ~ combinator selects siblings, the 2nd element must follow the 1st element (immediately or not), and must share the same parent. H1~p { } Working with Pseudo-Classes Button:hover { } […]