CSS border property

CSS border

CSS border property, is a shorthand property. It lets us to use some of the border type CSS properties simultaneously.

border shorthand properties are

  • border-width : Its default value is medium, it is used to specify the width of the border.
  • border-style : Its default value is none, it is used to specify the style of the border.

  • border-color : It is used to specify the color of the border.


Try Yourself

In the above example values used in border property are,

medium,thick - border-width

dotted,double - border-style

orange,red - border-color