OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/grid.css" rel="stylesheet"> |
| 3 <link href="resources/grid-alignment.css" rel="stylesheet"> |
| 4 <style> |
| 5 body { margin: 0; } |
| 6 .block { |
| 7 background: grey; |
| 8 float: left; |
| 9 margin: 5px; |
| 10 text-orientation: sideways; |
| 11 } |
| 12 .block > :nth-child(1) { font-size:24px; } |
| 13 .block > :nth-child(2) { font-size:32px; } |
| 14 .block > :nth-child(3) { font-size:48px; } |
| 15 .block > :nth-child(4) { font-size:64px; } |
| 16 .item { |
| 17 border-width: 2px 5px 3px 4px; |
| 18 border-style: solid; |
| 19 padding: 6px 3px 7px 8px; |
| 20 margin: 10px 6px 4px 12px; |
| 21 } |
| 22 .extraBottomPadding { padding-bottom: 30px; } |
| 23 .extraLeftPadding { padding-left: 30px; } |
| 24 .grid { grid: 60px 60px 75px 100px / 140px; } |
| 25 </style> |
| 26 |
| 27 <p>4x1 with orthogonal items.<br>No item shares any row-like Baseline Context. A
ll items share 'first-column' Baseline Context.<br>The 'justify-self' property (
orthogonal to the shared context) aligns all items along the baseline-axis using
the column-like baseline.</p> |
| 28 <div class="block grid contentStart justifyItemsBaseline alignItemsStart"><div c
lass="item verticalLR">A</div><div class="item verticalLR">A</div><div class="it
em verticalLR">A</div><div class="item verticalLR">A</div></div> |
| 29 <div class="block grid contentStart justifyItemsBaseline alignItemsStart"><div c
lass="item verticalLR extraLeftPadding">A</div><div class="item verticalLR">A</
div><div class="item verticalLR">A</div><div class="item verticalLR">A</div></di
v> |
| 30 <div class="block grid contentStart verticalLR justifyItemsBaseline alignItemsSt
art"><div class="item horizontalTB">A</div><div class="item horizontalTB">A</div
><div class="item horizontalTB">A</div><div class="item horizontalTB">A</div></d
iv> |
| 31 <div class="block grid contentStart verticalLR justifyItemsBaseline alignItemsSt
art"><div class="item horizontalTB extraBottomPadding">A</div><div class="item h
orizontalTB">A</div><div class="item horizontalTB">A</div><div class="item horiz
ontalTB">A</div></div> |
| 32 |
| 33 <br clear="all"> |
| 34 |
| 35 <div class="block grid contentStart verticalRL justifyItemsBaseline alignItemsSt
art"><div class="item horizontalTB">A</div><div class="item horizontalTB">A</div
><div class="item horizontalTB">A</div><div class="item horizontalTB">A</div></d
iv> |
| 36 <div class="block grid contentStart verticalRL justifyItemsBaseline alignItemsSt
art"><div class="item horizontalTB extraBottomPadding">A</div><div class="item h
orizontalTB">A</div><div class="item horizontalTB">A</div><div class="item horiz
ontalTB">A</div></div> |
OLD | NEW |