outline-style

The outline-style CSS property sets the style of an element's outline. An outline is a line that is drawn around an element, outside the border.

Example

Initial value none
Applies to all elements

Syntax

  
outline-style: dashed;
  

Values

Permits the user agent to render a custom outline style.
No outline is used. The outline-width is 0.
The outline is a series of dots.
The outline is a series of short line segments.
The outline is a single line.
The outline is two single lines. The outline-width is the sum of the two lines and the space between them.
The outline looks as though it were carved into the page.
The opposite of groove: the outline looks as though it were extruded from the page.
The outline makes the box look as though it were embedded in the page.
The opposite of inset: the outline makes the box look as though it were coming out of the page.

Browser support

outline-style1121.5871.2
auto1791.5151.2

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

×