border-spacing-initial-002

CSS table model: initial border-spacing

WeasyPrint

This browser

Source

 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 table model: initial border-spacing</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/001.xml" type="application/xhtml+xml">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#separated-borders">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">
 9   <style type="text/css">
10    .float { float: left; background: red; }
11    .table { display: table; }
12    .row { display: table-row; }
13    .cell { display: table-cell; background: green; color: white; text-align: center; }
14   </style>
15  </head>
16  <body>
17   <div class="float">
18    <div class="cell">THERE</div>
19    <div class="row">
20     <div class="table"> 
21      <div class="cell">SHOULD B</div>
22      <div class="cell">E N</div>
23      <div class="cell">O RED</div>
24     </div>
25    </div>
26    <div class="cell">ANYWHERE</div>
27   </div>
28  </body>
29 </html>