rest property CSS Reference



Definition and Usage

The 'rest' property is a shorthand for 'rest-before' and 'rest-after'. If two values are given, the first value is 'rest-before' and the second is 'rest-after'. If only one value is given, it applies to both properties.

Name: rest
Value:<'rest-before'> <'rest-after'>?
Initial:N/A (see individual properties)
Applies to:all elements
Inherited:no
Percentages:N/A
Media:speech
Computed value:N/A (see individual properties)

Syntax

rest: <'rest-before'> <'rest-after'>?

Values

Refer to rest-before and rest-after.


Examples

.class {
    rest: weak medium ;
}

Relative articles