CSS | border-inline-end Property

Thuộc tính border-inline-end trong CSS được dùng để xác định giá trị. Các giá trị này cho thuộc tính logical inline-end border ở một nơi duy nhất. Thuộc tính này đặt đường viền ở cuối phần tử xác định. Cú pháp:
border-inline-end: border-width|border-style|border-color;
Giá trị thuộc tính:
  • border-width: Giá trị thuộc tính này chứa độ rộng của thuộc tính border-inline-end.
  • border-style: Thuộc tính này chứa kiểu đường viền như dashed, solid...
  • border-color: Thuộc tính này chứa màu sắc của đường viền.
Các ví dụ dưới đây minh họa thuộc tính border-inline-end trong CSS. Ví dụ 1: html
<!DOCTYPE html>
<html>
 
<head>
    <title>CSS | border-inline-end Property</title>
    <style>
        h1 {
            color: green;
        }
         
        div {
            background-color: yellow;
            width: 220px;
            height: 40px;
        }
        .one {
            border-inline-end: 5px solid yellow;
            background-color: purple;
        }
    </style>
</head>
 
<body>
    <center>
        <h1>Geeksforgeeks</h1>
        <b>CSS | border-inline-end Property</b>
        <br><br>
        <div class="one">A Computer Science Portal</div>
    </center>
</body>
 
</html>
Đầu ra: css-border-inline-end-property Ví dụ 2: html
<!DOCTYPE html>
<html>
 
<head>
    <title>CSS | border-inline-end Property</title>
    <style>
        h1 {
            color: green;
        }
         
        div {
            background-color: yellow;
            width: 220px;
            height: 40px;
        }
        .one {
            border-inline-end: medium dashed yellow;
            background-color: purple;
        }
    </style>
</head>
 
<body>
    <center>
        <h1>Geeksforgeeks</h1>
        <b>CSS | border-inline-end Property</b>
        <br><br>
        <div class="one">A Computer Science Portal</div>
    </center>
</body>
 
</html>
Đầu ra: css-border-inline-end-property Các trình duyệt được hỗ trợ: Các trình duyệt hỗ trợ thuộc tính border-inline-end được liệt kê dưới đây:
  • Firefox
  • Opera
  • Edge
Tham khảo: https://developer.mozilla.org/en-US/docs/Web/CSS/border-inline-end
Last Updated : 20/07/2025