border-spacing-initial-002.xht (1108B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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>