Possible units for various CSS properties that require length, used by <see cref="T:Sandbox.UI.Length" /> struct.
Auto |
The layout engine will calculate and select a width for the specified element.
|
Center |
In the middle of the parent at the appropriate axis.
|
Contain |
For background images, contain the image within the element bounds.
|
Cover |
For background images, cover the entire element with the image, stretcing and cropping as necessary.
|
Em |
Font size of the current element.
|
End |
End of the parent at the appropriate axis.
|
Expression |
Represents a calc( ... ) expression
|
Percentage |
The length is a percentage (0-100) of the parent's length. (typically)
|
Pixels |
The length is in pixels.
|
RootEm |
Font size of the root element.
|
Start |
Start of the parent at the appropriate axis.
|
Undefined |
Similar to CSS 'unset', basically means we don't have a value; should only really be used under certain
circumstances (e.g. to handle background sizing properly).
|
ViewHeight |
The length is a percentage (0-100) of the viewport's height.
|
ViewMax |
The length is a percentage (0-100) of the viewport's largest side/edge.
|
ViewMin |
The length is a percentage (0-100) of the viewport's smallest side/edge.
|
ViewWidth |
The length is a percentage (0-100) of the viewport's width.
|