CSS - border-inline-start-color Property



The CSS property border-inline-start-color designates the color of an element's logical inline start border. This color is then translated to a physical border color according to the writing mode, directionality, and text orientation of the element.

Possible Value

  • <color> - The color of the border.

Syntax

border-inline-start-color = <color> | <image-1D>   

Applies to

All the HTML elements.

CSS border-inline-start-color - Using HEX color.

The following example demonstrates the usage of border-inline-start-color CSS property with hex color value.

      
<html>
<head>
<style>
   .container {
      background-color: #cfa3a3;
      width: 350px;
      height: 250px;
      align-items: center;
      justify-content: center;
   }
   .custom-box {
      border: 8px double #7d1010;
      border-inline-start-color: #f50f0f;
      padding: 12px;
      margin: 10px 10px;
      text-align: center;
      font-family: 'Arial', sans-serif;
      font-size: 20px;
      color: #2c3e50;
   }
</style>
</head>
<body>
<div class="container">
<p class="custom-box">A example with CSS property border-inline-start-color.</p>
</div>
</body>
</html>

CSS border-inline-start-color - Using named color.

The following example demonstrates the usage of border-inline-start-color CSS property with named color value.

      
<html>
<head>
<style>
   .container {
      background-color: #f5f1a9;
      width: 350px;
      height: 250px;
      display: flex;
      align-items: center;
      justify-content: center;
   }
   .custom-box {
      border: 8px double #7d1010;
      border-inline-start-color: blue;
      padding: 12px;
      margin: 10px;
      text-align: center;
      font-family: 'Arial', sans-serif;
      font-size: 22px;
      color: #2c3e50;
   }
</style>
</head>
<body>
<div class="container">
<p class="custom-box">A example with CSS property border-inline-start-color.</p>
</div>
</body>
</html>

CSS border-inline-start-color - Using RGB color.

The following example demonstrates the usage of border-inline-start-color CSS property with RGB color value.

      
<html>
<head>
<style>
   .container {
      background-color: #f5f1a9;
      width: 350px;
      height: 250px;
      display: flex;
      align-items: center;
      justify-content: center;
   }
   .custom-box {
      border: 8px double red; 
      border-inline-start-color: rgb(33, 150, 243) ;
      padding: 12px;
      margin: 10px;
      text-align: center;
      font-family: 'Arial', sans-serif;
      font-size: 22px;
      color: #2c3e50;
   }
</style>
</head>
<body>
<div class="container">
<p class="custom-box">An example with CSS property border-inline-start-color and RGB color value.</p>
</div>
</body>
</html>

CSS border-inline-start-color - Using HSL color.

The following example demonstrates the usage of border-inline-start-color CSS property with hsl color value.

      
<html>
<head>
<style>
   .container {
      background-color: #d0f1f5;
      width: 350px;
      height: 250px;
      display: flex;
      align-items: center;
      justify-content: center;
   }
   .custom-box {
      border: 8px double gray; 
      border-inline-start-color: hsl(210, 80%, 50%);
      padding: 12px;
      margin: 10px;
      text-align: center;
      font-family: 'Arial', sans-serif;
      font-size: 22px;
      color: #2c3e50;
   }
</style>
</head>
<body>
<div class="container">
<p class="custom-box">An example with CSS property border-inline-start-color and HSL color value.</p>
</div>
</body>
</html>

CSS border-inline-start-color - Using RGBA color.

The following example demonstrates the usage of border-inline-start-color CSS property with veritcal writing mode and rgba color value.

      
<html>
<head>
<style>
   .container {
      background-color: #c2d9f0;
      width: 350px;
      height: 350px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   }
   .text-box {
      writing-mode: vertical-rl;
      border: 9px double #146cc4;
      border-inline-start-color: rgba(233, 171, 13, 0.8);
      padding: 15px;
      margin: 10px 10px;
      text-align: center;
      font-family: 'Arial', sans-serif;
      font-size: 18px;
      color: #333;
   }
</style>
</head>
<body>
<div class="container">
<p class="text-box">An example which shows CSS property border-inline-start-color with veritcal writing mode.</p>
</div>
</body>
</html>
Advertisements