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.

  • Initial valueSee individual properties
  • Applies toAll elements
  • InheritedNo
  • MediaSpeech
  • Computed valueSee individual properties
  • AnimatableNo
  • CSS VersionCSS3
  • JavaScript
Formal syntax: <rest-before> <rest-after>?

rest: weak medium;
  • <rest-before>See rest-before CSS property for values.
  • <rest-after>See rest-after CSS property for values.
.class {
   rest: weak medium; 

Last updated on 23rd March 2014 By Rene Spronk

View All CSS Properties

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.