VOOZH about

URL: https://www.geeksforgeeks.org/css/css-border-left-style-property/

⇱ CSS border-left-style Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS border-left-style Property

Last Updated : 11 May, 2026

The border-left-style property in CSS is used to specify the style of the left border of an element. It determines how the left border appears, such as solid, dotted, or dashed.

  • It supports values like solid, dashed, dotted, double, groove, etc.
  • The border is visible only when a style other than none or hidden is applied.
  • It is typically used with border-left-width and border-left-color for complete styling.

Syntax:

border-left-style: none| hidden| dotted| dashed| solid| double |
groove| ridge| inset| outset| initial| inherit;

Default Value: none

Properties Value:

ValueDescription
noneIt sets no left border.
hiddenIt sets no border, except border conflict resolution for table elements.
dottedIt sets a dotted left border.
dashedIt sets a dashed left border.
solidIt sets a solid left border.
doubleIt sets a double border.
grooveIt sets a 3D grooved left border.
ridgeIt sets a 3D ridged left border.
insetIt sets a 3D inset left border.
outsetIt sets a 3D outset left border.
initialIt sets the border-left-style property to its default value.
inheritIt inherits the property values from its parent element.

Return Value: It returns the style of the left border of an element.

Example-1: Showing Dotted Left Border.  

Output:

👁 Image

Example-2: Showing Double Left Border  

Output:

👁 Image

Example-3: Showing Solid Left Border  

Output:

👁 Image

Comment
Article Tags: