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

CSS 'border-block-start-color' Property Explained

Est. Reading: 1 minute
Posted: April 3, 2024

The CSS 'border-block-start-color' property specifies the color of the border at the block-start of an element. This logical property adapts to the writing mode, allowing for the setting of border colors that respect the flow of content, whether horizontal or vertical. It's beneficial in internationalized designs that need to accommodate various languages and writing systems.

CSS 'border-block-start-color' Property Examples

See the Pen CSS 'border-block-start-color' Property by Webzstore (@webzstore) on CodePen.

The 'border-block-start-color' property offers targeted control over the color of borders at the start of the block flow, facilitating the creation of adaptable, internationally friendly designs by providing logical, flow-relative border color styling.

Browser Support For 'border-block-start-color' Property

FirefoxSafariChromeMicrosoft EdgeOpera
41.012.169.079.056.0

CSS Syntax of the 'border-block-start-color' Property

border-block-start-color: color | initial | inherit;

Usage of the 'border-block-start-color' Property

Use 'border-block-start-color' to define the color of the border at the starting edge of an element's block flow. This ensures that the border's appearance is consistent across different writing modes. This property is essential for designs requiring responsiveness and adaptability, as it ensures that the border color automatically adjusts to the orientation of the text.

Property Values of the 'border-block-start-color' Property

  • Color: Sets the color of the block-start border using any standard CSS color format, including named colors, HEX, RGB(a), and HSL(a) values.
  • Initial: Resets the 'border-block-start-color' to its default value.
  • Inherit: Inherits the 'border-block-start-color' from the parent element.

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