View Single Post
Old 08-30-2019, 10:12 PM   #27
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by AliceWonder View Post
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.)
Tex2002ans is offline   Reply With Quote