Deprecated linear-gravity
This API is deprecated.
Introduction
The CSS linear-gravity property defines how distributes space between and around content items along the main-axis of a linear container. Similar to flexible box layout justify-content.
When using justify-content and linear-gravity both, linear-gravity will override justify-content.
Examples

Syntax
Values
-
noneDefault value. It is equivalent to
start. -
startAlign the beginning of the parent element main axis.
-
endAlign the end of the parent element main axis.
-
centerAlign the center of the parent element's main axis.
-
space-between
In the corresponding layout direction, the two ends are aligned and the middle interval is equal.
-
topDeprecatedNot recommended, it is recommended to use
start. Align up, vertical layout takes effect. -
bottomDeprecatedNot recommended, it is recommended to use
end. Align down, vertical layout takes effect. -
leftDeprecatedNot recommended, it is recommended to use
start. Align left, horizontal layout takes effect. -
rightDeprecatedNot recommended, it is recommended to use
end. Align right, horizontal layout takes effect. -
center-verticalDeprecatedNot recommended, it is recommended to use
center. Centered vertically, vertical layout takes effect. -
center-horizontalDeprecatedNot recommended, it is recommended to use
center. Centered horizontally, horizontal layout takes effect.
Formal definition
| Initial value | none |
| Applies to | linear containers |
| Inherited | no |
| Animatable |
Formal syntax
Difference between web
- No such style in Web.
Compatibility
LCD tables only load in the browser