Merge pull request #470 from Evergard/01

06-cascade-fix: Add a punctation mark
This commit is contained in:
Kevin 2024-01-24 23:24:15 +00:00 committed by GitHub
commit c56ddf657a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ div.text {
}
Then we added another selector to create a descendant combinator. If we only created a descendant combinator, the specificity would be tied with the
div.text selector and it would come down to rule order, and if we only moved it the div.text selector would still have a higher specificity.
div.text selector and it would come down to rule order, and if we only moved it, the div.text selector would still have a higher specificity.
Another solution would be to keep the rule where it was and just replace the div selector with the .text selector: