VOOZH about

URL: https://www.geeksforgeeks.org/css/css-border-bottom-width-property/

⇱ CSS border-bottom-width Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS border-bottom-width Property

Last Updated : 15 May, 2026

The border-bottom-width property in CSS is used to specify the width (thickness) of the bottom border of an element. It controls how thick or thin the bottom border appears.

  • It accepts values like thin, medium, thick, or specific units such as px, em, etc.
  • The border is visible only when a border style is defined (e.g., solid, dashed).
  • It is commonly used with border-bottom-style and border-bottom-color for complete border styling.

Syntax:

border-bottom-width: length | thin | medium | thick | initial | inherit;

Property Values: The border-bottom-width property values are listed below:

ValueDescription
thinSets a thin border width.
mediumSets a medium border width (default).
thickSets a thick border width.
lengthSets the border width using a specific length value. Does not accept negative values.

Example: Here, we demonstrates the border-bottom-width property using different values (thin, medium, thick, and 20px). Each styled <div> shows a solid green bottom border with specified widths, illustrating how each value affects border thickness.

Comment
Article Tags:
Article Tags: