CSS outline-style property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS outline-style defines style for the outline of a box.
Syntax
outline-style : none | hidden | dashed | solid | dotted | double | ridge | groove | inset | outset
Property values
noneDefault
-
There is no style. In this case, the color and width of outline are also ignored i.e. 0px outline.
- Try it
outline-style: none; double
-
The outline consists of two lines. The total ouline-width equals to the two lines and space between them.
- Try it
outline-style: double; ridge
-
The content seems to be coming out of the canvas. It is obtained by producing the box-shadow from the two colors that are lighter and darker than the outline-color.
The outer side of the outline is darker than the inner side of the outline.
- Try it
outline-style: ridge; groove
-
The content seems to be going into the canvas. It is obtained by producing the box-shadow from the two colors that are lighter and darker than the outline-color.
The inner side of the outline is darker than the outer side of the outline.
- Try it
outline-style: groove;
Applicable to
It applies to all elements