Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS border-left definition

Syntax

border-left: <border-left-width> || <borderstyle> || <color>

Description

The border-left property is a shorthand property that specifies the border-top-width and/or border-top-style and/or border-top-color properties of an element.

Values

Values Definition
border-width border-style border-color Sets all three properties for the left border.

See also

border-style, border-color, border-width

 

Example

[Try this example yourself]
<style type="text/css">
.border1

  border-left: thick dotted #FFFF00
}
.border2

  border-left: double #FF0000
}
</style>
<div class="border1">
  Border 1
</div>
<div class="border2">
  Border 2
</div>

Output

Border 1
Border 2
  • Comments

No comments added.