I'm having to develop some views , and frankly I would define my knowledge of CSS as structurally.
I would like to know if it is possible to create a method, without using Javascript, to define the font size to be used in the text dynamically.
Example:
<div class="text-20"> <!-- font-size : 20px; -->
</div>
<div class="text-25"> <!-- font-size : 25px; -->
</div>
<div class="text-15"> <!-- font-size : 15px; -->
</div>
In other words, basically the class
would be .text
and the -{num}
corresponding to the font size.