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

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

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

The CSS 'border-block-end-color' property sets the border's color at the block-end of an element. It is part of the CSS Logical Properties, which adapts to the writing mode of the document, making it particularly useful for internationalization and ensuring designs adapt to different text directions seamlessly.

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

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

The 'border-block-end-color' property offers a targeted way to style the color of borders at the end of the block flow, accommodating designs that require flexibility for internationalization and writing mode variations, enhancing the global usability and accessibility of web content.

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

FirefoxSafariChromeMicrosoft EdgeOpera
41.012.169.079.056.0

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

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

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

Use 'border-block-end-color' to specify the color of the border that appears at the end of an element's block flow direction. This property is valuable in creating designs that need to be consistent across languages and writing systems, as it adjusts automatically with the writing mode to apply styling to the appropriate edge of the element.

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

  • Color: This defines the color of the block-end border. It can be specified using all standard CSS color formats, including named colors, HEX, RGB, RGBA, HSL, and HSLA.
  • Initial: Resets the 'border-block-end-color' to its default value. This value is typically the current color of the element unless otherwise defined.
  • Inherit: Causes the element to inherit the 'border-block-end-color' from its 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