Length

interface Length : Cssable

CSS length dimension.

Inheritors

Types

Link copied to clipboard
interface Absolute : Length

Absolute CSS length.

Link copied to clipboard
value class Ch(val value: Double) : Length.Relative

Relative to the width of the "0" (zero).

Link copied to clipboard
value class Cm(val value: Double) : Length.Absolute

Centimeters

Link copied to clipboard
value class Em(val value: Double) : Length.Relative

Relative to the font-size of the element.

Link copied to clipboard
value class In(val value: Double) : Length.Absolute

Inches

Link copied to clipboard
value class Mm(val value: Double) : Length.Absolute

Millimeters

Link copied to clipboard
value class Pc(val value: Double) : Length.Absolute

Picas

Link copied to clipboard
value class Percent(val value: Double) : Length.Relative

Relative to the parent element.

Link copied to clipboard
value class Pt(val value: Double) : Length.Absolute

Points

Link copied to clipboard
value class Px(val value: Double) : Length.Absolute

Pixels

Link copied to clipboard
interface Relative : Length

Relative CSS length.

Link copied to clipboard
value class Rem(val value: Double) : Length.Relative

Relative to font-size of the root element.

Link copied to clipboard
value class Vh(val value: Double) : Length.Relative

Relative to 1% of the height of the viewport.

Link copied to clipboard
value class VMax(val value: Double) : Length.Relative

Relative to 1% of viewport's larger dimension.

Link copied to clipboard
value class VMin(val value: Double) : Length.Relative

Relative to 1% of viewport's smaller dimension.

Link copied to clipboard
value class Vw(val value: Double) : Length.Relative

Relative to 1% of the width of the viewport.

Functions

Link copied to clipboard
abstract fun toCss(): String?