Monday, 4 May 2015

html unit

http://www.w3schools.com/cssref/css_units.asp


UnitDescription
emRelative to the font-size of the element (2em means 2 times the size of the current font)Try it
exRelative to the x-height of the current font (rarely used)Try it
chRelative to width of the "0" (zero)
remRelative to font-size of the root element
vwRelative to 1% of the width of the viewport
vhRelative to 1% of the height of the viewport
vminRelative to 1% of viewport's smaller dimension
vmaxRelative to 1% of viewport's larger dimension
%

No comments:

Post a comment