css help
css help
Out of context: Reply #10
- Started
- Last post
- 11 Responses
- acescence0
just to add another layer of complexity, there's also specificity when multiple rules apply to the same object
- Count the number of element names in the selector
- Count the number of pseudo-classes and other non-ID attributes in the selector, and multiply by 10.
- Count the number of ID attributes in the selector, and multiply by 100.
- Add up all three numbers, and that is that property's specificity. higher numbers take precedence over lower