1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
|
<!DOCTYPE html>
<title>CSS Box Alignment: align-content on large block container</title>
<link rel="help" href="https://www.w3.org/TR/css-align-3/#align-block">
<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
<link rel="match" href="align-content-block-012-ref.html">
<style title="Needed for automation; delete to review/debug">
@import "/fonts/ahem.css";
html { font: 15px/1 Ahem; max-width: 800px; }
</style>
<style>
.test { height: 3em; margin: 0.5em 1.25em;
/* show bounds of test box without interfering with margin-collapsing */
border-left: solid blue 5px;
/* ensure bullet follows first line */
display: list-item;
/* don't wrap, as that will throw off the reference */
white-space: nowrap; }
/* cram into 800x600 */
html { max-height: 600px; columns: 3 }
.wrapper { break-inside: avoid; border: solid 2px gray; }
/* predictability */
input { height: 4px; margin: 0; vertical-align: 4px; }
img { height: 8px }
</style>
<body>
<div class="wrapper">
<div class="test" style="align-content: start" title="start">
STRT
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: center" title="center">
CNTR
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: end" title="end">
ENDD
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: baseline" title="baseline">
BSLN
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: last baseline" title="last baseline">
LBSL
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: flex-start" title="flex-start">
FSTR
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: flex-end" title="flex-end">
FEND
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: unsafe start" title="unsafe start">
USTR
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: unsafe center" title="unsafe center">
UCNT
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: unsafe end" title="unsafe end">
UEND
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: safe start" title="safe start">
SSTR
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: safe center" title="safe center">
SCNT
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: safe end" title="safe end">
SEND
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: space-evenly" title="space-evenly">
SEVN
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: space-between" title="space-between">
SBTW
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: space-around" title="space-around">
SARN
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<div class="wrapper">
<div class="test" style="align-content: normal" title="normal">
NRML
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
<span>
x
<input type=checkbox>
<img src='../../support/swatch-orange.png'>
</div>
</div>
</div>
<p>
<button onclick="document.querySelector('style[title]').textContent = 'html { font-size: 12px; }'">Show Text</button>
</p>
</body>
|