Contact Us | +1 888 239-0733 (Toll free US/CA) Mon-Fri: 7:30am to 4:30pm (PST)

CSS 'border-bottom-style' Property Explained

Est. Reading: 2 minutes
Posted: April 4, 2024

The CSS 'border-bottom-style' property specifies the style of an element's bottom border. This property is crucial for defining how the bottom edge of an element is visually represented, allowing for various effects that can delineate or decorate the element's lower boundary. It supports multiple styles, from solid lines to dotted or dashed borders, providing flexibility in design.

CSS 'border-bottom-style' Property Examples

See the Pen CSS 'border-bottom-style' Property Explained by Webzstore (@webzstore) on CodePen.

The 'border-bottom-style' property is a versatile tool in CSS for controlling the visual presentation of the bottom borders of elements. It allows for detailed customization and enhances the aesthetic appeal and functionality of web layouts.

Browser Support For 'border-bottom-style' Property

FirefoxSafariChromeMicrosoft EdgeOpera
1.01.01.05.59.2

CSS Syntax of the 'border-bottom-style' Property

border-bottom-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset | initial | inherit;

Usage of the 'border-bottom-style' Property

Use 'border-bottom-style' to set or change the appearance of the bottom border of an element. This property can be used to highlight a section, improve the readability of content by underlining headings or links, or add a decorative touch to elements within a webpage. It allows for creative expression in border styling while maintaining the structure and clarity of the layout.

Property Values of the 'border-bottom-style' Property

  • None: No border is displayed.
  • Hidden: The border is not visible, so we effectively remove it.
  • Dotted: The border is rendered as a series of dots.
  • Dashed: The border appears as a series of short dashes.
  • Solid: A solid, continuous line is used for the border.
  • Double: The border consists of two solid lines with space between them.
  • Groove: The border looks as if it were carved into the page.
  • Ridge: The border appears to protrude from the page.
  • Inset: The border makes the element look as if it were embedded into the page.
  • Outset: The border gives the impression that the element stands out from the page.
  • Initial: Resets the 'border-bottom-style' to its default value.
  • Inherit: The element inherits the 'border-bottom-style' from its parent.

Ryan Parker

Ryan has been a standout in digital marketing since 2010. He's the go-to person for getting businesses noticed online, with over 300 projects under his belt—these range from helping local business owners to big online stores. As the Head of Digital Marketing at Webzstore Solutions, Ryan knows all the tricks to make companies shine on the internet. He's excellent at using the latest tech and smart strategies to get results. Ryan is all about making businesses grow and reach more people online.

chevron-down