4 ms·
You are very correct when you say that but I have been opposed a lot of times for trying to use classes like .small, .medium and .big for font sizes. I underst
by aniketpant 15y ago
You are very correct when you say that but I have been opposed a lot of times for trying to use classes like .small, .medium and .big for font sizes.
I understand that they take the meaning away from standard elements but I feel that classes give more meaning to an element.
p.small and p.big are all the way more logical than styling them according to the container that encloses them.
- csswizardry 15y ago> but I feel that classes give more meaning to an element But they don't. Classes (and IDs) have nothing at all to do with semantics or meaning. You can use whichever notation you wish (.big, .small, .alpha, .giga etc), I state as much at the end of the article, just remember that classes do not add meaning to (or subtract meaning from) an element :) H
- aniketpant 15y agoSo classes mean only one thing to us. They are used "just for styling". We use them only for our convenience and that's it. Pretty cool then :)