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.