├── InlineUnitHelper.html ├── InlineUnitHelper.js ├── LICENSE ├── README.md ├── UnitUtils.js ├── css └── main.css ├── main.js └── package.json /InlineUnitHelper.html: -------------------------------------------------------------------------------- 1 |
Click the value you want to change from the left side.
17 |Unit | 21 |Description | 22 |
---|---|
px | 25 |pixels (a dot on the computer screen) | 26 |
em | 29 |1em is equal to the current font size. 2em means 2 times 30 | the size of the current font. E.g., if an element is displayed with a font 31 | of 12 pt, then '2em' is 24 pt. The 'em' is a very useful unit in CSS, since 32 | it can adapt automatically to the font that the reader uses 33 | (ems, the height of the element's font) | 34 |
rem | 37 |38 | |
ex | 41 |one ex is the x-height of a font (x-height is usually 42 | about half the font-size) | 43 |
% | 46 |percentage | 47 |
in | 50 |inch (inches; 1in=2.54cm) | 51 |
cm | 54 |centimeter (centimeters; 1cm=10mm) | 55 |
mm | 58 |millimeter | 59 |
pt | 62 |point (1 pt is the same as 1/72 inch) | 63 |
pc | 66 |pica (1 pc is the same as 12 points) | 67 |