mercredi 1 avril 2015

Scale font using css whether width or height changes

I am aware of vh/vw or wmin/vmax units. But still with that I can't scale font whether my width or height changes. That is, I can scale font using css only in one case - if I want to scale font when width changes, then I use vw, for height vh. Is there something that I can use for both cases?


For both cases you can use css logic:



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

Aucun commentaire:

Enregistrer un commentaire