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 display: inline-block; |
| 18 border-width: 2px 5px 3px 4px; |
| 19 border-style: solid; |
| 20 padding: 6px 3px 7px 8px; |
| 21 margin: 10px 6px 4px 12px; |
| 22 } |
| 23 .area.verticalLR > .item, .area.verticalRL > .item { margin: 10px 6px 0px 12px;
} |
| 24 .area.horizontalTB > .item { margin: 10px 6px 4px 0px; } |
| 25 .extraTopPadding { padding-top: 30px; } |
| 26 .extraBottomPadding { padding-bottom: 30px; } |
| 27 .extraLeftPadding { padding-left: 30px; } |
| 28 .extraRightPadding { padding-right: 30px; } |
| 29 .area { display: inline-block; } |
| 30 .area:nth-child(1) { width: 65px; } |
| 31 .area:nth-child(2) { width: 60px; } |
| 32 .area:nth-child(3) { width: 100px; } |
| 33 .area:nth-child(4) { width: 100px; } |
| 34 .verticalLR > .area, .verticalRL > .area { width: auto; } |
| 35 .verticalLR > .area:nth-child(1), .verticalRL > .area:nth-child(1) { height: 65p
x; } |
| 36 .verticalLR > .area:nth-child(2), .verticalRL > .area:nth-child(2) { height: 60p
x; } |
| 37 .verticalLR > .area:nth-child(3), .verticalRL > .area:nth-child(3) { height: 100
px; } |
| 38 .verticalLR > .area:nth-child(4), .verticalRL > .area:nth-child(4) { height: 100
px; } |
| 39 .block { height: 125px; } |
| 40 .block.verticalLR, .block.verticalRL { |
| 41 width: 150px; |
| 42 height: auto; |
| 43 } |
| 44 </style> |
| 45 |
| 46 <p>4x1 with parallel and orthogonal items. Items orthogonal to the baseline-axis
will use a synthesized baseline (border-box 'under' edge).<br>No item shares an
y row-like Baseline Context. All 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> |
| 47 <div class="block verticalLR"><div class="area horizontalTB"><div class="item">A
</div></div><div class="area"><div class="item">A</div></div><div class="area ho
rizontalTB"><div class="item">A</div></div><div class="area"><div class="item">A
</div></div></div> |
| 48 <div class="block verticalLR"><div class="area horizontalTB"><div class="item ex
traLeftPadding">A</div></div><div class="area"><div class="item extraRightPaddin
g">A</div></div><div class="area horizontalTB"><div class="item">A</div></div><d
iv class="area"><div class="item">A</div></div></div> |
| 49 <div class="block"><div class="area verticalLR"><div class="item">A</div></div><
div class="area"><div class="item">A</div></div><div class="area verticalLR"><di
v class="item">A</div></div><div class="area"><div class="item">A</div></div></d
iv> |
| 50 <div class="block"><div class="area verticalLR"><div class="item extraBottomPadd
ing">A</div></div><div class="area"><div class="item extraTopPadding">A</div></d
iv><div class="area verticalLR"><div class="item">A</div></div><div class="area"
><div class="item">A</div></div></div> |
| 51 |
| 52 <br clear="all"> |
| 53 |
| 54 <div class="block directionRTL"><div class="area verticalRL"><div class="item">A
</div></div><div class="area"><div class="item">A</div></div><div class="area ve
rticalRL"><div class="item">A</div></div><div class="area"><div class="item">A</
div></div></div> |
| 55 <div class="block directionRTL"><div class="area verticalRL"><div class="item ex
traBottomPadding">A</div></div><div class="area"><div class="item extraTopPaddin
g">A</div></div><div class="area verticalRL"><div class="item">A</div></div><div
class="area"><div class="item">A</div></div></div> |
| 56 |
| 57 |
OLD | NEW |