Open In App

CSS | border-inline-start-color Property

Last Updated : 26 Mar, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

The border-inline-start-color property in CSS is used to define the individual logical inline-end border property values in a single place in the style sheet. This property sets the border-color at the left of the defining element border.

Syntax:

border-inline-start-color: border-color;

Property values:

  • border-color: This property holds the color of the border.

Below examples illustrate the border-inline-start-color property in the CSS:

Example 1:




<!DOCTYPE html>
<html>
   
<head>
    <title>CSS | border-inline-start-color Property</title>
    <style>
        h1 {
            color: green;
        }
           
        div {
            background-color: yellow;
            width: 220px;
            height: 40px;
        }
        .one {
            border: 5px solid gray;
            border-inline-start-color: yellow;
            background-color: purple;
        }
    </style>
</head>
   
<body>
    <center>
        <h1>Geeksforgeeks</h1>
        <b>CSS | border-inline-start-color Property</b>
        <br><br>
        <div class="one">A Computer Science Portal</div>
    </center>
</body>
   
</html>


Output:

Example 2:




<!DOCTYPE html>
<html>
   
<head>
    <title>CSS | border-inline-start-color Property</title>
    <style>
        h1 {
            color: green;
        }
           
        div {
            background-color: yellow;
            width: 220px;
            height: 40px;
        }
        .one {
            border: 5px solid black;
            border-inline-start-color: green;
            background-color: purple;
        }
    </style>
</head>
   
<body>
    <center>
        <h1>Geeksforgeeks</h1>
        <b>CSS | border-inline-start-color Property</b>
        <br><br>
        <div class="one">A Computer Science Portal</div>
    </center>
</body>
   
</html>


Output:

Supported Browsers: The browsers supported by border-inline-start-color property are listed below:

  • Firefox
  • Opera
  • Edge

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-start-color



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads