CSS Border-Style Property

In this chapter you will learn:

About border-style

List of values used for border-style

Some examples of border-style

Border-style property is mostly used to specify the style of the border and provide options to set the borders in different styles. Such as dotted, dashed, solid etc. This property is helpful to design borders of the element in different look and feel.

List of values used for border-style:-

Values of border-style

Description

solid

Used to specify solid border

dotted

Used to specify dotted border

dashed

Used to specify dashed border

double

Used to specify double border

inset

This value is depend on the color of the border and used to define a 3D inset border

outset

Used to specify 3D outset border and it is also depends on the border color

Summary

In this chapter, you have learned about the border-style property and its values with an example of the screenshot so now you can try it yourself to run the given code. Click on the next button to continue-