CSS border-bottom-width Property
Description
The border-bottom-width property controls the thickness of the bottom edge of an element’s border box. Visually, it determines how much space the bottom border occupies when the element is painted; in the box model this thickness contributes to the border area and can change the element’s total rendered size unless the sizing model is altered via box-sizing. Because it is a side-specific border property, it affects only the bottom edge and can be used independently from the other three border-side widths.
A bottom border’s appearance depends on more than just its thickness: the border must have a style that produces a visible stroke and a non-transparent color to be seen. That means border-style must be something other than none/hidden for the width to draw, and border-color determines the border’s color. If the style produces no stroke or the color is fully transparent, changes to the bottom width will not produce a visible line even though the border box still reserves the border area.
Authoring and overrides: the side-specific property overrides the corresponding value supplied by a shorthand or a multi-side property, so border-width or the shorthand border-bottom can set widths for multiple sides but can be selectively overridden by the side-specific setting. border-bottom-width does not inherit from parent elements; changing it typically triggers repaint and may trigger reflow if it affects computed dimensions. It is commonly animated or transitioned to create visual effects, and because it is part of the border area its changes interact with layout and hit-testing in predictable ways according to the box model.
Definition
- Initial value
- medium
- Applies to
- All elements
- Inherited
- No
- Computed value
- Absolute length; '0' if the border style is 'none' or 'hidden'
- Animatable
- Yes
- JavaScript syntax
- object.style.borderBottomWidth
Interactive Demo
Syntax
border-bottom-width: <line-width>
Values
- thinLess than the default width.
- mediumDefault value.
- thickGreater than the default width.
- <length>Floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).
- inherit
Example
Browser Support
The following information will show you the current browser support for the CSS border-bottom-width property. Hover over a browser icon to see the version that first introduced support for this CSS property.
This property is supported by all modern browsers.
Desktop
Tablets & Mobile
Last updated by CSSPortal on: 1st January 2026
