How to select specific tags in a tag
I want to make everything in the div uppercase, except the span that has a "k" in it because it's a small k
4 Replies
Put the numbers in another span and make that one bigger
you cannot select elements based on their text contents in CSS, so you'll have to add a class to the span with k in it
Okay. Thanks
a terrible alternative is to use the :first-child selector
or, instead of extra classes, you can use a data attribute, like
data-unit="k"
and target that instead