Summary: Move yoga docs into master branch so that pull requests are able to include doc updates as part of other changes. Reviewed By: JoelMarcey Differential Revision: D4365700 fbshipit-source-id: 2f46a88974104c454c00bcdf1257abb5c4075a68
1.8 KiB
1.8 KiB
docid, title, layout, permalink
docid | title | layout | permalink |
---|---|---|---|
absolute-position | Absolute positioning | docs | /docs/absolute-position/ |
The Position
property tells Flexbox how you want your item to be positioned within its parent. There are 2 options:
Relative
(default)Absolute
An item marked with Position = Absolute
is positioned absolutely in regards to its parent. This is done through 6 properties:
Left
- controls the distance a child's left edge is from the parent's left edgeTop
- controls the distance a child's top edge is from the parent's top edgeRight
- controls the distance a child's right edge is from the parent's right edgeBottom
- controls the distance a child's bottom edge is from the parent's bottom edgeStart
- controls the distance a child's start edge is from the parent's start edgeEnd
- controls the distance a child's end edge is from the parent's end edge
Using these options you can control the size and position of an absolute item within its parent. Because absolutely positioned children don't effect their siblings layout Position = Absolute
can be used to create overlays and stack children in the Z axis.