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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -