Advertisement
decembre

CSS - Box Alignment (block, table, flex, grid layout) v.1 -

May 8th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1.  
  2.  
  3. ============================
  4. ======== CSS - Box Alignment (block, table, flex, grid layout) v.1 - POSTé
  5. ============================
  6.  
  7. ============================
  8. ======== CSS Box Alignment Module Level 3 - 2014
  9. == https://www.w3.org/TR/css-align-3/
  10.  
  11. relating to the alignment of boxes within their containers in the various CSS box layout models:
  12. block layout, table layout, flex layout, and grid layout.
  13. (The alignment of text and inline-level content is defined in [CSS3TEXT] and [CSS3LINE].)
  14.  
  15. Alignment Values
  16.  
  17. 3.1 Positional Alignment: the center, start, end, self-start, self-end, flex-start, flex-end, left, and right keywords
  18. 3.2 Baseline Alignment: the baseline and last-baseline keywords
  19. 3.3 Distributed Alignment: the stretch, space-between, space-around, and space-evenly keywords
  20. 3.4 Overflow Alignment: the safe and true keywords
  21.  
  22. 4 Content Distribution: the justify-content and align-content properties
  23.  
  24. 4.1 Baseline Content-Alignment
  25. 4.2 Overflow and Scroll Positions
  26.  
  27. 5 Self-Alignment: Aligning the Box within its Parent
  28.  
  29. 5.1 Inline/Main-Axis Alignment: the justify-self property
  30. 5.2 Block/Cross-Axis Alignment: the align-self property
  31. 5.3 Baseline Self-Alignment
  32.  
  33. 6 Default Alignment
  34.  
  35. 6.1 Inline/Main-Axis Alignment: the justify-items property
  36. 6.2 Block/Cross-Axis Alignment: the align-items property
  37.  
  38. 7 Baseline Alignment Details
  39.  
  40. 7.1 Determining the Baseline of a Box
  41. 7.2 Baseline Alignment Terminology
  42. 7.3 Aligning Boxes by Baseline
  43.  
  44.  
  45. ==
  46. Values have the following meanings:
  47.  
  48. center
  49. Centers the alignment subject within its alignment container.
  50. start
  51. Aligns the alignment subject to be flush with the alignment container’s start edge.
  52. end
  53. Aligns the alignment subject to be flush with the alignment container’s end edge.
  54. self-start
  55. Aligns the alignment subject to be flush with the edge of the alignment container corresponding to the alignment subject’s start side.
  56. self-end
  57. Aligns the alignment subject to be flush with the edge of the alignment container corresponding to the alignment subject’s end side.
  58. flex-start
  59. Only used in flex layout. [CSS3-FLEXBOX] Aligns the alignment subject to be flush with the edge of the alignment container corresponding to the flex container’s main-start or cross-start side, as appropriate. When used in layout modes other than Flexbox, this value computes to start.
  60. flex-end
  61. Only used in flex layout. Aligns the alignment subject to be flush with the edge of the alignment container corresponding to the flex container’s main-end or cross-end side, as appropriate. When used in layout modes other than Flexbox, this value computes to end.
  62. left
  63. Aligns the alignment subject to be flush with the alignment container’s line-left edge. If the property’s axis is not parallel with the inline axis, this value computes to start.
  64. right
  65. Aligns the alignment subject to be flush with the alignment container’s line-right edge. If the property’s axis is not parallel with the inline axis, this value computes to start.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement