table-backgrounds-bs-table-001-ref.xht (1605B)
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 { width: 325px; height: 145px; margin: 0px 3px 2px 4px; } 43 div.color { background-color: aqua; } 44 45 div.imagetl, div.imagebr { 46 background-image: url(support/repeatable-diagonal-gradient-with-ticks.png); 47 } 48 49 div.imagetl { background-position: 3px 4px; } 50 div.imagebr { background-position: 323px 138px; } 51 52 </style> 53 </head> 54 <body> 55 56 <div class="color"></div> 57 <div class="imagetl"></div> 58 <div class="imagebr"></div> 59 60 61 62 </body></html>