Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. CSS
  3. Reference
  4. Properties
  5. border-block-end-style

border-block-end-style

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨January 2020⁩.

Theborder-block-end-styleCSS property defines the style of the logical block-end border of an element, which maps to a physical border style depending on the element's writing mode, directionality, and text orientation. It corresponds to theborder-top-style,border-right-style,border-bottom-style, orborder-left-style property depending on the values defined forwriting-mode,direction, andtext-orientation.

Try it

border-block-end-style: dotted;writing-mode: horizontal-tb;
border-block-end-style: dotted;writing-mode: vertical-rl;
border-block-end-style: groove;writing-mode: horizontal-tb;
border-block-end-style: dashed;writing-mode: vertical-lr;
<section>  <div>    This is a box with a border around it.  </div></section>
#example-element {  background-color: #eeeeee;  color: black;  border: 0.75em solid;  padding: 0.75em;  width: 80%;  height: 100px;  unicode-bidi: bidi-override;}

Syntax

css
/* <'border-style'> values */border-block-end-style: dashed;border-block-end-style: dotted;border-block-end-style: groove;/* Global values */border-block-end-style: inherit;border-block-end-style: initial;border-block-end-style: revert;border-block-end-style: revert-layer;border-block-end-style: unset;

Related properties areborder-block-start-style,border-inline-start-style, andborder-inline-end-style, which define the other border styles of the element.

Values

<'border-style'>

The line style of the border. Seeborder-style.

Formal definition

Initial valuenone
Applies toall elements
Inheritedno
Computed valueas specified
Animation typediscrete

Formal syntax

border-block-end-style =
<line-style>

<line-style> =
none|
hidden|
dotted|
dashed|
solid|
double|
groove|
ridge|
inset|
outset

Examples

Dashed border with vertical text

HTML

html
<div>  <p>Example text</p></div>

CSS

css
div {  background-color: yellow;  width: 120px;  height: 120px;}.exampleText {  writing-mode: vertical-lr;  border: 5px solid blue;  border-block-end-style: dashed;}

Results

Specifications

Specification
CSS Logical Properties and Values Level 1
# border-style

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp