Quote:
Originally Posted by AliceWonder
I use "article p" and it gets all paragraphs inside "section" etc. while still allowing me to do "section.whatever p" to specifically override in a specific section.
But I don't see what the difference between "body p" and just "p" would be - they both would always match every "p" as you can not have a "p" that isn't a child of "body".
|
When you start having overlapping styles, you have to take into account CSS Specificity:
https://www.youtube.com/watch?v=c0kfcP_nD9E
The more specific thing wins.*
* (For the most part, there are a lot of edge cases... which is why it's a good idea to keep your CSS simple instead.)