CSS - border-bottom-width
Example
CSS
Copy Code
element { border-bottom-width: thin; border-bottom-style: solid; border-bottom-color: #000; }
Syntax
CSS
Copy Code
/* Any <length> value */ border-bottom-width: 10em; border-bottom-width: 3vmax; border-bottom-width: 6px; /* A keyword */ border-bottom-width: thin; border-bottom-width: medium; border-bottom-width: thick; border-bottom-width: inherit;
Values
- <
br-width>
- Is either a non-negative explicit
<length>
value or a keyword denoting the thickness of the bottom border. The keyword must be one of the following values:thin
A thin border medium
A medium border thick
A thick border thin ≤ medium ≤ thick
inequality and that the values are constant on a single document. inherit
- Represents the calculated value of the
border-bottom-width
of the parent's element.
Formal syntax
CSS
Copy Code
<a href="css/border-bottom-width#br-width"><br-width></a><p>where <br><code><br-width> = <a href="css/length" title="Possible values: a number followed by'em', 'ex', 'ch', 'rem', 'px', 'cm', 'mm', 'in', 'vh', 'vw', 'vmin', 'vmax', 'pt', 'pc' or 'px', like 3px, 1.5cm, -0.5em or 0"><length></a> <a href="css/value_definition_syntax#single_bar" title="Single bar">|</a> thin <a href="css/value_definition_syntax#single_bar" title="Single bar">|</a> medium <a href="css/value_definition_syntax#single_bar" title="Single bar">|</a> thick</code></p>
Description
The border-bottom-width
CSS property sets the width of the bottom border of a box.
Initial value | medium |
---|---|
Applies to | all elements. It also applies to ::first-letter . |
Inherited | no |
Media | visual |
Computed value | the absolute length or 0 if border-bottom-style is none or hidden |
Animatable | yes, as a length |
Canonical order | the unique non-ambiguous order defined by the formal grammar |
Specifications
Specification | Status | Comment |
---|---|---|
CSS Backgrounds and Borders Module Level 3 The definition of 'border-bottom-width' in that specification. |
Candidate Recommendation | No significant change |
CSS Level 2 (Revision 1) The definition of 'border-bottom-width' in that specification. |
Recommendation | Initial definition |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 1.0 | 1.0 (1.0) | 4.0 | 3.5 | 1.0 (85) |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | ? | ? | ? | ? | ? |
See also
- The other border-width-related CSS properties:
border-left-width
,border-right-width
,border-top-width
, andborder-width
- The other border-bottom-related CSS properties:
border
,border-bottom
,border-bottom-style
, andborder-bottom-color
.
License
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/css/border-bottom-width