Assume I want the following styling:
font-size: 3rem;
However, I do not want to hardcode the 3. Rather, I want it to be a result of a calc()
operation (e.g. calc(2 + 1)
). How do I specify the unit rem
to follow the results of the calc()
operation? I'm trying to do something like this:
font-size: calc(2 + 1)rem;
I guess I'm looking for a concatenation feature? CSS solution only, please.