PNLdev
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
En
English
فارسی
En
English
فارسی
Tutorial
Front-end
HTML
reference
CSS
reference
JavaScript
reference
Run
<!DOCTYPE html> <html> <head> <style> div { background-color: green; inline-size: 50%; border-block-width: 15px; } #example1 { border-block-style: solid; border-block-color: yellow; } #example2 { border-block-style: solid; border-block-color: lightblue; } </style> </head> <body> <h1>border-block-color property example</h1> <h2>border-block-color: yellow:</h2> <div id="example1"> <p>The border-block-color property defines the color of the borders in the block direction.</p> </div> <h2>border-block-color: lightblue:</h2> <div id="example2"> <p>If two values are set; the first one is for the start in the block direction, and the second one is for the end in the block direction.</p> </div> </body> </html>