CSS border-style property
Browser support · legacy reference
ChromeFully supports
SafariFully supports
FirefoxFully supports
Internet ExplorerFully supports
EdgeFully supports
OperaFully supports
Description
CSS border-style is a short hand property of border-top-style, border-right-style, border-bottom-style, and border-left-style properties. It defines the style for all the sides of a block.
Syntax
border-style : border-top-style border-right-style border-bottom-style border-left-style
Property values
solid dotted
-
It is the same as border-style: solid dotted solid dotted;.
- Try it
border-style: solid dotted; solid dotted dashed
-
It is the same as border-style: solid dotted dashed dotted;.
- Try it
border-style: solid dotted dashed; none solid dotted dashed
-
It is the same as border-style: none solid dotted dashed;.
- Try it
border-style: none solid dotted dashed;
Applicable to
It applies to See longhand properties.