property

border-block-start-color — CSS reference

Sets the color of the block start border. Initial currentColor; not inherited. Color is visible only with a drawable border style and width. Direction and writing mode determine the physical edge.

Formal Syntax & Structure

css syntaxcss
<'border-top-color'>

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS logical layout lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}#a,#b,#c{box-sizing:content-box;writing-mode:horizontal-tb;width:100px;height:80px} #c{writing-mode:vertical-rl;direction:ltr} #a,#b,#c{border-block-start:2px solid teal;border-block-start-color:purple}</style><body><div id="a" class="sample" dir="ltr">Start</div><div id="b" class="sample" dir="rtl" lang="fa">شروع</div><div id="c" class="sample" lang="ja">縦書き</div></body></html>
CSS Reference