Glubase - share your knowledge


All / Computers / Programming / CSS





  • View Command

CSS Reference

CSS border-bottom-width definition

Browser support
IEFFOpSaf

Type:

Syntax

border-bottom-width: medium | thin | thick | <length>

Description

This property specifies the width of the border.

Values

Values Definition

thin

Sets a thin border.

medium

Default. Sets a thin border.

thick

Sets a thick border.
width<unit> Defines the width of the border, for example: 5px. The unit can be any of px (pixels), mm (millimeters), cm(centimeters), in (inches), pt (points), pc (picas), em (the element's font height) or ex (the element's x-height). 

 See Also

border, border-bottom, border-bottom-style, border-bottom-color

 

Example

[Try this example yourself]
<style type="text/css">
.style1
{
  border-bottom-style: solid;
  border-bottom-width: 1px;
}
.style2

  border-bottom-style: solid;
  border-bottom-width: thick;
}
</style>

<div class="style1">
  1 pixel width
</div>

<br />

<div class="style2">
  Thick width
</div>

Output

1 pixel width

Thick width
  • Comments

No comments added.