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/relative-id.md.
Lynx
  • English
  • relative-id

    Introduction

    Used to set the number of sibling elements in the relative-layout. -1 and 0 are special values. -1 is the default value, indicating that the current element will not be considered as the alignment reference standard for sibling elements. Using 0 as an element ID is not allowed, as it will result in unexpected behavior.

    Examples

    Values

    <number>

    int only. the number of the current element. Default value is -1.

    -1 and 0 are special values. -1 is the default value, indicating that the current element will not be considered as the alignment reference standard for sibling elements. Using 0 as an element ID is not allowed, as it will result in unexpected behavior.

    Syntax

    relative-id: 1;
    relative-id: 2;

    Formal definition

    Initial value-1
    Applies torelative items
    Inheritedno
    Animatable

    Formal syntax

    relative-id = <integer [1,∞]>

    Difference between web

    • There is no such style in web.

    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.