border-left-style

Introduction

The border-left-style CSS property sets the line style of an element's left border.

Examples

Syntax

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

Values

  • none Like the hidden keyword, displays no border.

  • hidden Like the none keywork, displays no border.

  • dotted Displays a series of rounded dots. The spacing of the dots is not defined by the specification and is implementation-specific. The radius of the dots is half the computed value of the same side's border-width.

  • dashed Displays a series of short square-ended dashes or line segments. The exact size and length of the segments are not defined by the specification and are implementation-specific.

  • solid Displays a single, straight, solid line.

  • double Displays two straight lines that add up to the pixel size defined by border-width.

  • groove Displays a border with a carved appearance. It is the opposite of ridge.

  • ridge Displays a border with an extruded appearance. It is the opposite of groove.

  • inset Displays a border that makes the element appear embedded. It is the opposite of outset.

  • outset Displays a border that makes the element appear embossed. It is the opposite of inset.

Formal definition

Initial valuesolid
Applies toall elements
Inheritedno
Animatableno

Formal syntax

<line-style> where <line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset

Differences from web

Global values are not supported (inherit, initial, revert, unset, etc).

When value is 'none' or 'hidden', the border-width value is not 0.

Default value is 'solid'.

Compatibility

Loading

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.