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

    Introduction

    Used to set the centering alignment of the current element in the relative-layout.

    Examples

    Value

    none

    Default Value. Not centered.

    both

    Centered vertically and horizontally.

    vertical

    Center vertically.

    horizontal

    Centered horizontally.

    Syntax

    relative-center: none;
    relative-center: both;
    relative-center: vertical;
    relative-center: horizontal;

    Formal definition

    Initial valuenone
    Applies torelative items
    Inheritedno
    Animatable

    Formal syntax

    relative-center = none | both | vertical | horizontal

    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.