I can’t figure out how to achieve that behavior when I add the same classname to different html elements (h2, p, img) I can tune their settings separately, because they are technically different leaves of the DOM tree, but they’re somehow semantically belong to each other.
as an example I’d like to get something like this in plain old CSS:
h2 offer { align: center; } img offer { align: left; } p offer { align: right; }
Is it possible? Or should I just forget it because nowdays it’s not how it should be done and this kind of pattern is a bit outdated? (haven’t written CSS in a while)
I’ve watched the tutorials but haven’t came across such a thing.
Thanks.