Comment Comment by danielvaughn There are two different things people could be referring to when they mention the "cascade".One is CSS style inheritance. So if I do this: <div class="text-blue-500"> <i>hello</i> <b>world</b> <div> The `text-blue-500` style is going to cascade down to the descendent elements. That's just how CSS works and there's no getting around it.The other usage of the term applies to a style of writing CSS that makes use of this cascade. So something like this: .card { color: darkgray; } .card .header { font-size: 20px; } I think what people are referring to in this thread is the latter, which is not the cascade, but a particular approach to CSS. parent danielvaughn 3 years ago
One is CSS style inheritance. So if I do this:
The `text-blue-500` style is going to cascade down to the descendent elements. That's just how CSS works and there's no getting around it.The other usage of the term applies to a style of writing CSS that makes use of this cascade. So something like this:
I think what people are referring to in this thread is the latter, which is not the cascade, but a particular approach to CSS.