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


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


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


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


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