Should i use the vw for responsive text…??? or What is better for responsive text???
You can use view port units but you need to add them with em
units so they remain accessible. Font sizes that are based purely on view port units are not accessible because they only change their size when the browser view port changes and thus they prevent people from manually changing the font size with another method (such as text only zoom). So you could do something like:
font-size: calc(1em + 1vw)
;
This will allow the font size to grow larger as the view port width is increased but the addition of 1em
still allows people to manually control the font size themselves (and guarantees a minimum font size of 1em
).
Sir Sorry i can’t understand but can you give the example of this topic???
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.