[css3.svg]CSS - Measurement units

Recommended for display
Recommended for print

Relative Lengths

General

  • % A proportion of the parent element.

Font relative

  • em Font size of the current element.
  • rem Font size of the root element.
  • ex Font x-letter-height of the current element.
  • ch Font width of the zero (0) character.

Viewport relative

  • vw 1% of the viewport's width.
  • vh 1% of the viewport's height.
  • vmin 1% of the viewport's smaller axis (width or height).
  • vmax 1% of the viewport's larger axis (width or height).

Absolute Lengths

Metric

  • cm Centimeter (10mm).
  • mm Millimeter.
  • Q Quarter millimeter.

Imperial

  • in Inch (72 points in an inch, 6 picas in an inch).
  • pc Pica (12 points in a pica).
  • pt Point.

Device

  • px Pixel (a CSS pixel).

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath