table-anonymous-objects-211-ref.xht (1057B)
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 Reference</title> 5 <style type="text/css"><![CDATA[ 6 .table { display: table; white-space: pre; } 7 .row { display: table-row; } 8 .table-cell { display: table-cell; } 9 ]]></style> 10 11 </head> 12 13 <body> 14 15 <p>The two rows below must have identical content.</p> 16 17 <div class="table"> 18 <div class="row"> 19 <div class="table-cell"> <img src="support/swatch-blue.png"/> <img src="support/swatch-blue.png"/> </div> 20 <div class="table-cell"><img src="support/swatch-blue.png"/></div> <div class="table-cell"><img src="support/swatch-blue.png"/></div> 21 </div> 22 <div class="row"> 23 <div class="table-cell"> <img src="support/swatch-blue.png"/> <img src="support/swatch-blue.png"/> </div> 24 <div class="table-cell"><img src="support/swatch-blue.png"/></div> <div class="table-cell"><img src="support/swatch-blue.png"/></div> 25 </div> 26 </div> 27 </body> 28 </html>