- Services
- Case Studies
- Technologies
- NextJs development
- Flutter development
- NodeJs development
- ReactJs development
- About
- Contact
- Tools
- Blogs
- FAQ
rick@tillitsdone.com
+66824564755
CSS border-block-style Enhance Border Styles
Discover how the CSS border-block-style property enhances border styles for responsive web designs.
Learn about its use cases, available options, and how to apply it effectively.
Learn about its use cases, available options, and how to apply it effectively.

Syntax
/* <'border-style'> values */border-block-style: dashed;border-block-style: dotted;border-block-style: groove;
/* Global values */border-block-style: inherit;border-block-style: initial;border-block-style: revert;border-block-style: revert-layer;border-block-style: unset;
Values
<'border-style'>
:none
: No border.hidden
: Same asnone
, but used for border conflict resolution.dotted
: A series of dots.dashed
: A series of short dashes.solid
: A single, solid line.double
: Two solid lines.groove
: Appears to be carved into the page.ridge
: Opposite ofgroove
.inset
: Appears to be embedded into the page.outset
: Opposite ofinset
.
- Global values:
inherit
,initial
,revert
,revert-layer
,unset
.
Formal Definition
Attribute | Description |
---|---|
Initial value | none |
Applies to | All elements |
Inherited | No |
Computed value | As specified |
Animation type | Discrete |
Formal Syntax
border-block-style = <'border-top-style'> {1,2}
<'border-top-style'> = <line-style>
<line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
Examples
Example 1: Dashed Border with Vertical Text
HTML
<div> <p class="exampleText">Example text</p></div>
CSS
div { background-color: yellow; width: 120px; height: 120px;}
.exampleText { writing-mode: vertical-lr; border: 5px solid blue; border-block-style: dashed;}
Results
The text is oriented vertically, and the border style is dashed, adapting to the vertical orientation.
Example 2: Solid Border with Dotted Style
HTML
<div> <p class="exampleText">Example text</p></div>
CSS
div { background-color: yellow; width: 120px; height: 120px;}
.exampleText { border: 5px dotted cyan; border-block-style: solid; background-color: purple;}
Results
The border style is solid, overriding the initial dotted style.
Specifications
The border-block-style
property is part of the CSS Logical Properties and Values Level 1 specification.
Specification |
---|
CSS Logical Properties and Values Level 1 # propdef-border-block-style |
Browser Compatibility
The border-block-style
property is widely supported across modern browsers:
- Chrome: Version 87 and above
- Edge: Version 87 and above
- Firefox: Version 66 and above
- Opera: Version 73 and above
- Safari: Version 14.1 and above
For the most up-to-date information, refer to the Browser Compatibility Data (BCD) tables.
See Also
- CSS Logical Properties and Values: Dive into logical properties in CSS and how they help create adaptive and responsive web designs.
- border-top-style: Understand how the
border-top-style
property works. - border-right-style: Explore the
border-right-style
property. - border-bottom-style: Learn about the
border-bottom-style
property. - border-left-style: Discover the
border-left-style
property. - writing-mode: See how the
writing-mode
property affects text direction and orientation. - direction: Learn about the
direction
property for text direction. - text-orientation: Understand how the
text-orientation
property controls text orientation.
CSS3 is the latest version of Cascading Style Sheets, offering advanced styling features like animations, transitions, shadows, gradients, and responsive design.






Talk with CEO
Ready to bring your web/app to life or boost your team with expert Thai developers?
Contact us today to discuss your needs, and let’s create tailored solutions to achieve your goals. We’re here to help at every step!
🖐️ Contact us 209 Articles
Explore Popular JavaScript library for building user interfaces with a component-based architecture.
169 Articles
Explore UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase.
150 Articles
Explore JavaScript runtime for building scalable, high-performance server-side applications.
60 Articles
Explore React framework enabling server-side rendering and static site generation for optimized performance.
40 Articles
Explore Superset of JavaScript adding static types for improved code quality and maintainability.
39 Articles
Explore Utility-first CSS framework for rapid UI development.
130 Articles
Explore Programming language known for its simplicity, concurrency model, and performance.
70 Articles
Explore Astro is an all-in-one web framework. It includes everything you need to create a website, built-in.
40 Articles
Explore Versatile testing framework for JavaScript applications supporting various test types.
337 Articles
Explore CSS3 is the latest version of Cascading Style Sheets, offering advanced styling features like animations, transitions, shadows, gradients, and responsive design.
Let's keep in Touch
Thank you for your interest in Tillitsdone! Whether you have a question about our services, want to discuss a potential project, or simply want to say hello, we're here and ready to assist you.
We'll be right here with you every step of the way.
We'll be right here with you every step of the way.
Contact Information
rick@tillitsdone.com+66824564755
Address
9 Phahonyothin Rd, Khlong Nueng, Khlong Luang District, Pathum Thani, Bangkok Thailand
We anticipate your communication and look forward to discussing how we can contribute to your business's success.
We'll be here, prepared to commence this promising collaboration.
We'll be here, prepared to commence this promising collaboration.
Frequently Asked Questions
Explore frequently asked questions about our products and services.
Whether you're curious about features, warranties, or shopping policies, we provide comprehensive answers to assist you.
Whether you're curious about features, warranties, or shopping policies, we provide comprehensive answers to assist you.