html5 - Scale font using css whether width or height changes -


i aware of vh/vw or wmin/vmax units. still can't scale font whether width or height changes. is, can scale font using css in 1 case - if want scale font when width changes, use vw, height vh. there can use both cases?

for both cases can use css logic:

width:100vw; height:50vw; max-height: 100vh; max-width: 200vh; 

i believe there vmin , vmax.

vmin unit equal smaller of ‘vw’ or ‘vh’.

vmax unit equal larger of ‘vw’ or ‘vh’.

via http://www.w3.org


Comments

Popular posts from this blog

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -

How to run C# code using mono without Xamarin in Android? -