Is there a way in CSS to select based on the existence of a class declaration, but not it’s actual name? I want to say something like, for all body with id=declaration and any class, display: block.
Is there a way in CSS to select based on the existence of a
Share
Yes, you can use an attribute selector to test for the existence of a
classattribute: