For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/css/properties/border-top-color.md.
Lynx
  • English
  • border-top-color

    Introduction

    Used to set the color of the top border.

    Examples

    Syntax

    border-top-color: red;
    border-top-color: #ffbb00;
    border-top-color: rgb(255, 0, 0);
    border-top-color: hsla(100%, 50%, 25%, 0.75);
    border-top-color: currentColor;
    border-top-color: transparent;

    Values

    • transparent The border color is transparent.

    • <color> The specific color of the border.

    Formal definition

    Initial valuetransparent
    Applies toall elements
    Inheritedno
    Animatableyes

    Formal syntax

    transparent | <color>

    Compatibility

    LCD tables only load in the browser

    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.