Description
The Unit constants.

Namespace: Docs.Css
Assembly: Docs.Html (in Docs.Html.dll) Version: 2.1.0.0 (2.1)

Syntax

         
 C#  Visual Basic  Visual C++ 
public enum Unit
Public Enumeration Unit
public enum class Unit

Members

MemberValueDescription
None0
None
Percent1
Percent (%)
EM2
The font size of the element (or, to the parent element's font size if set on the 'font-size' property)
EX3
The x-height of the element's font
PX4
Viewing device
GD5
The grid defined by 'layout-grid' described in the CSS3 Text module [CSS3TEXT]
REM6
The font size of the root element
VW7
The viewport's width
VH8
The viewport's height
VM9
Vhe viewport's height or width, whichever is smaller of the two
CH10
The width of the "0" (ZERO, U+0030) glyph found in the font for the font size used to render. If the "0" glyph is not found in the font, the average character width may be used. How is the "average character width" found?
MM11
mm
CM12
cm
IN13
inch
PT14
pt
PC15
pc
DEG16
degrees
GRAD17
grads
RAD18
radians
TURN19
turns
MS20
ms
S21
s
Hz22
Hz
kHz23
kHz

See Also