|
10 | 10 | <link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet |
11 | 11 | type="text/css"> |
12 | 12 |
|
| 13 | + <style> |
| 14 | + .in-cards-demo { |
| 15 | + width: 13em; |
| 16 | + height: 8em; |
| 17 | + |
| 18 | + padding: 4px; |
| 19 | + border: medium solid blue; |
| 20 | + margin: 6px; |
| 21 | + |
| 22 | + font: medium/1.3 Times New Roman, Times, serif; |
| 23 | + white-space: nowrap; |
| 24 | + } |
| 25 | + </style> |
| 26 | + |
13 | 27 | <body> |
14 | 28 | <div class=head> <!--begin-logo--> |
15 | 29 | <p><a href="http://www.w3.org/"><img alt=W3C height=48 |
@@ -287,6 +301,56 @@ <h2 id=region-overflow><span class=secno>3. </span>Region overflow</h2> |
287 | 301 | a constrained height), or should it work automatically for all elements |
288 | 302 | even if they don't have ‘<code class=css>overflow: regions</code>’? |
289 | 303 |
|
| 304 | + <div class=example> |
| 305 | + <table style="width: 100%"> |
| 306 | + <tbody> |
| 307 | + <tr> |
| 308 | + <td> |
| 309 | + <pre> |
| 310 | +<!DOCTYPE HTML> |
| 311 | +<title>Breaking content into |
| 312 | + equal-sized cards</title> |
| 313 | +<style> |
| 314 | + .in-cards { |
| 315 | + overflow: regions; |
| 316 | + |
| 317 | + width: 13em; |
| 318 | + height: 8em; |
| 319 | + |
| 320 | + padding: 4px; |
| 321 | + border: medium solid blue; |
| 322 | + margin: 6px; |
| 323 | + |
| 324 | + font: medium/1.3 Times New |
| 325 | + Roman, Times, serif; |
| 326 | + } |
| 327 | +</style> |
| 328 | +<div class="in-cards"> |
| 329 | + In this example, the text in the div |
| 330 | + is broken into a series of cards. |
| 331 | + These cards all have the same style. |
| 332 | + The presence of enough content to |
| 333 | + overflow one of the cards causes |
| 334 | + another one to be created. The second |
| 335 | + card is created just like it's the |
| 336 | + next sibling of the first. |
| 337 | +</div> |
| 338 | + </pre> |
| 339 | + |
| 340 | + <td> |
| 341 | + <div class=in-cards-demo>In this example, the text in the<br> |
| 342 | + div is broken into a series of<br> |
| 343 | + cards. These cards all have the<br> |
| 344 | + same style. The presence of<br> |
| 345 | + enough content to overflow<br> |
| 346 | + one of the cards causes another</div> |
| 347 | + |
| 348 | + <div class=in-cards-demo>one to be created. The second<br> |
| 349 | + card is created just like it's the<br> |
| 350 | + next sibling of the first.</div> |
| 351 | + </table> |
| 352 | + </div> |
| 353 | + |
290 | 354 | <h3 id=region-styling><span class=secno>3.1. </span>Region styling</h3> |
291 | 355 |
|
292 | 356 | <h4 id=region-pseudo-element><span class=secno>3.1.1. </span>The |
|
0 commit comments