responsive design - CSS font sizing relative to parent -


is there font sizing unit in css allows me specify sizes relative parent element;

vw , vh example relative viewport width , height respectively.

i want parent relative size responsive design. example parent element 400px wide, want text half of width, i'm not sure if can specify - or if such feature supported.

just use font-size value ising em instead of px or pt. example, if have div width , height of 400px, use font-size: xxem (where xx numeric value). alternately, can include % in font size well.


Comments

Popular posts from this blog

php - Zend Framework / Skeleton-Application / Composer install issue -

c# - Better 64-bit byte array hash -

python - PyCharm Type error Message -