table-backgrounds-bs-cell-001-ref.xht (1649B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"><head> 2 <title>Table background tests</title> 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 4 <meta http-equiv="Content-Style-Type" content="text/css" /> 5 <style type="text/css"> 6 7 html, body { margin: 0; padding: 0; border: 0; font-size: 16px; } 8 body { padding: 15px; } 9 10 /* 11 table { 12 margin: 0px 3px 2px 4px; 13 border-width: 4px 2px 7px 3px; 14 15 border-box height is 145px: 16 border-top: 4px; 17 padding-top: 3px 18 border-spacing: 3px * 6 == 18px 19 cell * 5: == 21px * 5 == 105px 20 border-top: 2px; 21 padding-top: 1px; 22 height: 10px; 23 padding-bottom: 4px; 24 border-bottom: 4px; 25 padding-bottom: 8px; 26 border-bottom: 7px; 27 28 border-box width is 325px: 29 border-left: 3px; 30 padding-left: 6px 31 border-spacing: 2px * 6 == 12px 32 cell * 5: == 59px * 5 == 295px 33 border-left: 3px; 34 padding-left: 3px; 35 width: 50px; 36 padding-right: 2px; 37 border-right: 1px; 38 padding-right: 7px; 39 border-right: 2px; 40 */ 41 42 div.color, div.imagetl, div.imagebr { 43 width: 59px; height: 21px; margin: 58px 136px 126px 137px; 44 } 45 div.color { background-color: aqua; } 46 47 div.imagetl, div.imagebr { 48 background-image: url(support/repeatable-diagonal-gradient-with-ticks.png); 49 } 50 51 div.imagetl { background-position: 3px 2px; } 52 div.imagebr { background-position: 58px 17px; } 53 54 </style> 55 </head> 56 <body> 57 58 <div class="color"></div> 59 <div class="imagetl"></div> 60 <div class="imagebr"></div> 61 62 63 64 </body></html>