Tutorials

CSS 'border-block-color' Property Explained

  • Published
  • 1 min read
  • CSS
  • HTML
  • Web Design
CSS 'border-block-color' Property
In this article
  1. CSS 'border-block-color' Property Examples
  2. Browser Support For 'border-block-color' Property
  3. CSS Syntax of the 'border-block-color' Property
  4. Usage of the 'border-block-color' Property
  5. Property Values of the 'border-block-color' Property

The CSS 'border-block-color' property sets the color of an element's block-start and block-end borders. It's part of the CSS Logical Properties, which provide a way to style elements based on their logical, rather than physical, dimensions and directions. This property is especially useful in designs and layouts that need to adapt to different writing modes and directions, such as those used in internationalized websites.

CSS 'border-block-color' Property Examples

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

The 'border-block-color' property is essential for designing adaptable and responsive web interfaces. Allowing border colors to be logically defined along the block axis supports the creation of layouts that work seamlessly across different writing modes, enhancing the global usability and accessibility of web content.

Browser Support For 'border-block-color' Property

firefoxsafarichromemicrosoft edgeopera
66.014.187.087.073.0

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

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

Usage of the 'border-block-color' Property

Use 'border-block-color' to specify the color of the borders at the block-start and block-end of an element. This can help maintain a consistent design across languages and writing modes by ensuring that border colors adapt to the orientation of the content. It's particularly beneficial in responsive design and content that must support multiple languages and writing systems.

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

  • Color: This specifies the color of the block-start and block-end borders. It can be defined using named colors, HEX codes, RGB(a), and HSL(a) values.
  • Initial: Resets the 'border-block-color' to its default value.
  • Inherit: Inherits the 'border-block-color' from the element's parent.

Share this article

Written by

Webzstore Team

Webzstore has helped businesses since 2010. Today, we bring websites, digital marketing and enquiry follow-up into practical plans built around the work each business needs.

Related services

Talk about your website or marketing

Book a Free 30-Minute Call

More tutorials

All tutorials

Privacy choices

Choose what this website may load. Your choice is saved on this device for up to 180 days. Privacy Policy

Turning a choice off stops further use of that optional service on this site. It does not take back information already sent, and we cannot delete cookies that other services set in your browser.