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 .extraBottomPadding { padding-bottom: 30px; } |
| 24 .extraLeftPadding { padding-left: 30px; } |
| 25 .area { display: inline-block; } |
| 26 .area:nth-child(1) { width: 60px; } |
| 27 .area:nth-child(2) { width: 60px; } |
| 28 .area:nth-child(3) { width: 75px; } |
| 29 .area:nth-child(4) { width: 100px; } |
| 30 .verticalLR.area, .verticalRL.area { width: auto; } |
| 31 .verticalLR > .area:nth-child(1), .verticalRL > .area:nth-child(1) { height: 60p
x; } |
| 32 .verticalLR > .area:nth-child(2), .verticalRL > .area:nth-child(2) { height: 60p
x; } |
| 33 .verticalLR > .area:nth-child(3), .verticalRL > .area:nth-child(3) { height: 75p
x; } |
| 34 .verticalLR > .area:nth-child(4), .verticalRL > .area:nth-child(4) { height: 100
px; } |
| 35 .block { height: 140px; } |
| 36 .block.verticalLR, .block.verticalRL { |
| 37 width: 140px; |
| 38 height: auto; |
| 39 } |
| 40 </style> |
| 41 |
| 42 <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> |
| 43 <div class="block verticalLR"><div class="area"><div class="item">A</div></div><
div class="area"><div class="item">A</div></div><div class="area"><div class="it
em">A</div></div><div class="area"><div class="item">A</div></div></div> |
| 44 <div class="block verticalLR"><div class="area"><div class="item extraLeftPaddin
g">A</div></div><div class="area"><div class="item">A</div></div><div class="are
a"><div class="item">A</div></div><div class="area"><div class="item">A</div></d
iv></div> |
| 45 <div class="block"><div class="area"><div class="item">A</div></div><div class="
area"><div class="item">A</div></div><div class="area"><div class="item">A</div>
</div><div class="area"><div class="item">A</div></div></div> |
| 46 <div class="block"><div class="area"><div class="item extraBottomPadding">A</div
></div><div class="area"><div class="item">A</div></div><div class="area"><div c
lass="item">A</div></div><div class="area"><div class="item">A</div></div></div> |
| 47 |
| 48 <br clear="all"> |
| 49 |
| 50 <div style="direction: rtl;" class="block"><div class="area"><div class="item">A
</div></div><div class="area"><div class="item">A</div></div><div class="area"><
div class="item">A</div></div><div class="area"><div class="item">A</div></div><
/div> |
| 51 <div style="direction: rtl;" class="block"><div class="area"><div class="item ex
traBottomPadding">A</div></div><div class="area"><div class="item">A</div></div>
<div class="area"><div class="item">A</div></div><div class="area"><div class="i
tem">A</div></div></div> |
| 52 |
| 53 |
| 54 |
OLD | NEW |