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.md.
Lynx
  • English
  • border

    Introduction

    The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color.

    Examples

    Syntax

    /* style */
    border: solid;
    
    /* width | style */
    border: 2px dotted;
    
    /* style | color */
    border: outset #f33;
    
    /* width | style | color */
    border: medium dashed green;

    Values

    This property is a shorthand for the following CSS properties:

    Formal definition

    Initial valueempty value
    Applies toall elements
    Inheritedno
    Animatableno

    Formal syntax

    <line-width> || <line-style> || <color>
    where
    <line-width> = <length> | thin | medium | thick
    <line-style> = none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
    

    Differences from the Web

    Lynx does not support inherit, initial, revert, or unset.

    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.