Tutorials

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

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

The CSS 'border-block-start-width' property sets the width of the border at the block-start of an element. Tailored to the document's writing mode, it defines the border's thickness at the start of the block flow. It could be the top border in horizontal writing modes or the left border in vertical writing modes. It's part of the CSS logical properties and values. It is designed to support layouts that adapt seamlessly across different languages and writing systems.

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

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

The 'border-block-start-width' property provides a flexible tool for designing border widths that respect the logical flow of content, supporting the creation of accessible, adaptable, and internationally friendly web designs.

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

firefoxsafarichromemicrosoft edgeopera
41.012.169.079.056.0

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

border-block-start-width: medium | thin | thick | length | initial | inherit ;

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

Use 'border-block-start-width' to control the thickness of the border at the beginning of an element's block flow direction. This property is essential for responsive designs and content requiring internationalization, as it ensures that border width is logically applied based on the content's flow, enhancing the design's consistency and adaptability.

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

  • Medium: Specifies a medium thickness for the border. This is the default value.
  • Thin: Specifies a thin thickness for the border.
  • Thick: Specifies a thick thickness for the border.
  • Length: Allows for an explicit size to be set for the border's thickness, using CSS length units (e.g., px, em).
  • Initial: Resets the 'border-block-start-width' to its default value (medium).
  • Inherit: The element inherits the 'border-block-start-width' from its 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.