Answer the question
In order to leave comments, you need to log in
How to increase the font size in proportion to the block size?
There is some block div . It has some 16px text.
What is the correct way to use percentages instead of pixels in font size? We want the text to grow proportionately as the (height and width) of the div increases .
Answer the question
In order to leave comments, you need to log in
1) increase the block through transform: scale() then everything in it will proportionally increase
2) in js, track the size of the block and change the font size as needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question