outline

The outline CSS shorthand property set all the outline properties in a single declaration.

Example

Initial value as each of the properties of the shorthand:outline-color: invert, for browsers supporting it, currentColor for the otheroutline-style: noneoutline-width: medium
Applies to all elements

Syntax

  
outline: 2em double rgba(0, 0, 0, 0.2);
  

Values

Sets the color of the outline. Defaults to currentcolor if absent. See outline-color.
Sets the style of the outline. Defaults to none if absent. See outline-style.
Sets the thickness of the outline. Defaults to medium if absent. See outline-width.

Browser support

outline1121.5871.2

We use cookies to improve your experience. Learn more in our Privacy policy.

×