CSS border-bottom-style Property

Beginner
⏱️ 5 min read
📚 Updated: Jun 2026
🎯 4 Examples
Box Model & Borders

What You’ll Learn

The border-bottom-style property defines the line style of the bottom border on an element. It is useful when you want the bottom edge styled differently from the other sides.

01

Bottom Style

Physical bottom edge.

02

solid

Continuous line.

03

dashed / dotted

Soft dividers.

04

3D Styles

groove, ridge, inset.

05

none Default

No border by default.

06

Longhand

Part of border-bottom.

Definition and Usage

The border-bottom-style CSS property specifies the style of the bottom border of an element. This property allows you to control the appearance of the bottom edge, enhancing design and visual hierarchy on your web pages.

By choosing different border styles such as solid, dashed, or dotted, you can create a variety of effects for section dividers, list separators, tabs, and footer rules.

💡
Beginner Tip

A border only appears when border-bottom-style is not none. Pair it with border-bottom-width and border-bottom-color, or use border-bottom: 2px solid #000; as shorthand.

📝 Syntax

The syntax for border-bottom-style is straightforward:

syntax.css
selector {
  border-bottom-style: <border-style>;
}

Basic Example

border-bottom-style.css
p {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #000;
}

The style value refers to the border line type, such as solid, dashed, or dotted.

Syntax Rules

  • The initial value is none, which hides the bottom border.
  • Common values include solid, dashed, and dotted.
  • 3D-style keywords include groove, ridge, inset, and outset.
  • Pair with width and color longhands, or use the border-bottom shorthand.
  • Related longhands: border-bottom-width and border-bottom-color.

⚡ Quick Reference

QuestionAnswer
Initial valuenone
Applies toBottom border style only
InheritedNo
AnimatableNo
Common useSection dividers, footer rules, list separators

Default Value

The default value of border-bottom-style is none, meaning no bottom border is displayed until you choose a visible style.

💎 Property Values

The border-bottom-style property accepts standard CSS border style keywords.

ValueDescription
noneNo border is displayed
solidA single solid line
dashedA series of dashed lines
dottedA series of dotted lines
doubleTwo solid lines with space between them
grooveA 3D grooved border that looks carved in
ridgeA 3D ridged border that looks raised out
insetA 3D inset border that looks embedded
outsetA 3D outset border that looks raised
hiddenSame as none, but can still affect table layout
previewsolid
previewdotted
previewdashed
previewdouble
previewgroove
previewridge
previewinset
previewoutset

Physical Bottom Edge

border-bottom-style always styles the visual bottom of an element, even when writing mode changes. For writing-mode-aware layouts, consider border-block-end-style instead.

Horizontal writing

Dashed bottom border

Vertical writing (vertical-rl)

Still on physical bottom

border-bottom-style vs border-block-end-style

PropertyTargetsBest for
border-bottom-stylePhysical bottom border styleSimple horizontal pages, tabs, lists, and section dividers
border-block-end-styleLogical block-end border styleMultilingual and writing-mode-aware layouts
border-bottomWidth, style, and color togetherWhen you want one shorthand for the full bottom border

👀 Live Preview

A box with a solid blue bottom border style:

This element has a solid bottom border style.

Uses border-bottom-style: solid; with width and color longhands.

Examples Gallery

Try border-bottom-style with solid, dashed, dotted, and double bottom borders.

📚 Basic Bottom Border Styles

Set the bottom border style with width and color longhands so the line is visible.

Example 1 — Solid Bottom Border on a Paragraph

Apply a solid bottom border to a paragraph with width and color.

border-bottom-style-solid.html
<style>
  p {
    border-bottom-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: #000;
  }
</style>

<p>This paragraph has a solid bottom border with a width of 2 pixels and a color of black.</p>
Try It Yourself

How It Works

solid creates a continuous line on the bottom edge. Width and color make the border visible and styled.

Example 2 — Different Bottom Border Styles

Showcase solid, dotted, dashed, and double styles on the bottom edge.

border-bottom-style-showcase.html
<style>
  .border-examples div {
    border-bottom-width: 2px;
    padding: 10px 0;
    margin: 10px 0;
  }
  .solid {
    border-bottom-style: solid;
    border-bottom-color: #3498db;
  }
  .dotted {
    border-bottom-style: dotted;
    border-bottom-color: #e74c3c;
  }
  .dashed {
    border-bottom-style: dashed;
    border-bottom-color: #2ecc71;
  }
  .double {
    border-bottom-style: double;
    border-bottom-color: #f39c12;
  }
</style>

<div class="border-examples">
  <div class="solid">Solid Border Bottom</div>
  <div class="dotted">Dotted Border Bottom</div>
  <div class="dashed">Dashed Border Bottom</div>
  <div class="double">Double Border Bottom</div>
</div>
Try It Yourself

How It Works

Each style keyword changes how the bottom line is drawn. double needs enough width to show two visible lines.

🎨 Practical UI Styles

Use dashed and double styles for dividers and decorative bottom edges.

Example 3 — Dashed List Divider

Use a dashed bottom border to separate stacked menu or list items.

border-bottom-style-dashed.css
.menu-item {
  border-bottom-style: dashed;
  border-bottom-width: 1px;
  border-bottom-color: #cbd5e1;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
Try It Yourself

How It Works

dashed breaks the bottom border into short segments, which works well for subtle list separation.

Example 4 — Double Bottom Border Accent

Use a double style for a stronger decorative bottom edge on a callout box.

border-bottom-style-double.css
.callout {
  border: 1px solid #e2e8f0;
  border-bottom-style: double;
  border-bottom-width: 4px;
  border-bottom-color: #2563eb;
  padding: 1rem;
  background: #fff;
}
Try It Yourself

How It Works

You can override only the bottom style while keeping other sides on the border shorthand. double draws two parallel lines when width is large enough.

🧠 How border-bottom-style Works

1

You choose a line style

Set solid, dashed, dotted, or another border style keyword.

Style rule
2

You add width and color

Pair the style with border-bottom-width and border-bottom-color.

Border setup
3

The browser draws the bottom edge

Only the physical bottom border uses that line style. Top, left, and right sides stay unchanged.

Bottom edge
=

Styled bottom divider

Your element gets a clear visual separator on the physical bottom edge.

Universal Browser Support

The border-bottom-style property is supported in all major browsers, including Chrome, Firefox, Safari, Edge, Opera, and Internet Explorer. It is one of the most reliable CSS border properties.

Baseline · All browsers

Reliable bottom border styles on every platform

Chrome, Firefox, Safari, Edge, and Opera all support border-bottom-style consistently.

100% Universal support
Google Chrome69+ · Desktop & Mobile
Full support
Mozilla Firefox66+ · Desktop & Mobile
Full support
Apple Safari12.1+ · macOS & iOS
Full support
Microsoft Edge79+ · Chromium
Full support
Opera56+ · Modern versions
Full support
border-bottom-style property 100% supported

Bottom line: Use border-bottom-style freely in any project. It works consistently across all browsers.

Conclusion

The border-bottom-style property provides a variety of options for styling the bottom border of an element, from simple lines to more complex effects like double and 3D styles.

By experimenting with different style keywords, you can enhance the visual appeal and user experience of your website with section dividers, list separators, tabs, and decorative accents.

💡 Best Practices

✅ Do

  • Use solid for clear section dividers on the bottom edge
  • Pair style with width and color longhands for predictable results
  • Try dashed or dotted for softer separators
  • Use the border-bottom shorthand when setting all three parts
  • Give double enough width (usually 3px or more) to show two lines

❌ Don’t

  • Leave the value at none and expect a visible border
  • Use border-bottom-style when you need a writing-mode-aware logical edge
  • Use heavy 3D styles everywhere in modern flat UI
  • Mix physical and logical style properties without a clear reason
  • Forget width when using thin styles like dotted or dashed

Key Takeaways

Knowledge Unlocked

Five things to remember about border-bottom-style

Use these points when styling the physical bottom edge.

5
Core concepts
02

none Default

Hidden by default.

Default
📝03

solid / dashed

Most common styles.

Values
⚙️04

Needs Width

Pair with longhands.

Setup
🔄05

One Edge Only

Other sides unchanged.

Scope

❓ Frequently Asked Questions

The border-bottom-style property sets the line style of the bottom border of an element. It only affects the physical bottom edge.
The initial value is none, which means no bottom border is displayed until you set a visible style such as solid or dashed.
If the value is none, no border appears. You also need border-bottom-width greater than zero and usually a color, or use the border-bottom shorthand.
border-bottom-style always styles the physical bottom edge. border-block-end-style follows the writing mode and stays on the logical block-end side.
solid, dashed, and dotted are the most common for UI dividers. double, groove, ridge, inset, and outset create stronger visual effects.

Practice in the Live Editor

Open the HTML editor, try border-bottom-style, and preview styled bottom borders instantly.

HTML Editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

5 people found this page helpful