CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS border-style property




CSS border-style property use to set a border style like Solid border, double border, dotted border etc.


Property Values


Properties Value Description
Syntax border-style:value;
value   none (Not Display)
  solid
  dotted
  dashed
  double
  groove
  ridge
  inset
  outset
  hidden
  inherit
Allow to All elements
Inherited Yes

Example-Code:

<p style="border-style:dashed; border-width:2px; border-color:orange">
border style is dashed.</p>
Online Try This Code Your Self....   »

Example-Result:

border style is dashed.