CSS Rest Property

CSS 1

CSS 2

CSS 3

No No Yes

Description

The 'rest' property is a shorthand for setting '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.

Syntax

rest: [value];

Possible values

  • [rest-before]
  • [rest-after]
  • inherit

Initial Value

implementation dependent

Applies To

All elements

Inherited

No

Media

Speech

Example

.class {
  rest: weak medium ;
}


View All CSS Properties