[−][src]Module sauron::html::units
provides function and macro for html units such as px, %, em, etc.
Functions
ch | Relative to the width of the "0" (zero) |
cm | centimeters |
em | Relative to the font-size of the element (2em means 2 times the size of the current font) |
ex | Relative to the x-height of the current font (rarely used) |
in | inches (1in = 96px = 2.54cm) |
mm | milimeters |
pc | picas (1pc = 12 pt) |
percent | percentage |
pt | points (1pt = 1/72 of 1in) |
px | pixels (1px = 1/96th of 1in) |
q | 1q is equivalent to 1/40th of 1cm. |
rem | Relative to font-size of the root element |
vh | Relative to 1% of the height of the viewport* |
vw | Relative to 1% of the width of the viewport* |