CKTIS / CSS
border-bottom-style — bottom border style
The border-bottom-style property sets the pattern of the physical bottom border. It accepts one style, such as solid or dashed; width and color are set separately. Its initial value, none, means no border.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
border-bottom-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset;border-bottom-style controls only the style of the physical bottom edge, regardless of writing direction. It does not set width or color: use border-bottom-width and border-bottom-color for those. The border-bottom shorthand sets all three components.
Supply one of ten styles: none, hidden, dotted, dashed, solid, double, groove, ridge, inset, outset. dotted produces dots, dashed dashes, solid a continuous line, and double two lines. The remaining four visible styles create three-dimensional effects; rendering details may vary by browser.
The initial value is none; the property is not inherited. With none and hidden, the border width is zero. In collapsed-border tables, hidden suppresses competing borders, whereas none has the lowest priority. A nonzero width alone is insufficient when the style remains none.
The example sets a black solid bottom border with a width of 4px. A border image can replace the ordinary border style. Style animation is discrete: values switch rather than gradually blending.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>border-bottom-style</title>
<style>
.sample {
width: 200px;
padding: 12px;
border-bottom-width: 4px;
border-bottom-color: #000;
border-bottom-style: solid;
}
</style>
<div class="sample">border-bottom-style: solid</div>
</html>Result
A box containing “border-bottom-style: solid”, with a solid black 4px bottom border and no borders on the other sides.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.