Tutorials

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

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

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.

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.