1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: CSS Tables: Captions in the middle of tables</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/table/caption/002.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">
8 <style type="text/css">
9 .table { display: table; width: 100%; }
10 .caption { display: table-caption; }
11 .cell { display: table-cell; }
12 .green { color: green; }
13 </style>
14 </head>
15 <body>
16 <p>There should be two green lines below.</p>
17 <div class="table">
18 <div class="green cell"> 2. This line sho</div>
19 <div class="green caption"> 1. This line should be green. </div>
20 <div class="green cell">uld be green. </div>
21 </div>
22 </body>
23 </html>