|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" |
|
2 "http://www.w3.org/TR/html4/strict.dtd"> |
|
3 <html lang="en-US"> |
|
4 <head> |
|
5 <title>Table background tests</title> |
|
6 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|
7 <meta http-equiv="Content-Style-Type" content="text/css"> |
|
8 <style type="text/css"> |
|
9 |
|
10 html, body { margin: 0; padding: 0; border: 0; font-size: 16px; } |
|
11 body { padding: 15px; } |
|
12 |
|
13 .o { opacity: 0.5; } |
|
14 |
|
15 /* |
|
16 table { |
|
17 margin: 0px 3px 2px 4px; |
|
18 border-width: 4px 2px 7px 3px; |
|
19 |
|
20 border-box height is 145px: |
|
21 border-top: 4px; |
|
22 padding-top: 3px |
|
23 border-spacing: 3px * 6 == 18px |
|
24 cell * 5: == 21px * 5 == 105px |
|
25 border-top: 2px; |
|
26 padding-top: 1px; |
|
27 height: 10px; |
|
28 padding-bottom: 4px; |
|
29 border-bottom: 4px; |
|
30 padding-bottom: 8px; |
|
31 border-bottom: 7px; |
|
32 |
|
33 border-box width is 325px: |
|
34 border-left: 3px; |
|
35 padding-left: 6px |
|
36 border-spacing: 2px * 6 == 12px |
|
37 cell * 5: == 59px * 5 == 295px |
|
38 border-left: 3px; |
|
39 padding-left: 3px; |
|
40 width: 50px; |
|
41 padding-right: 2px; |
|
42 border-right: 1px; |
|
43 padding-right: 7px; |
|
44 border-right: 2px; |
|
45 */ |
|
46 |
|
47 div.color, div.imagetl, div.imagebr { |
|
48 width: 181px; height: 117px; margin: 10px 75px 30px 76px; |
|
49 } |
|
50 div.color { background-color: aqua; } |
|
51 |
|
52 div.imagetl, div.imagebr { |
|
53 background-image: url(repeatable-diagonal-gradient-with-ticks.png); |
|
54 } |
|
55 |
|
56 div.imagetl { background-position: 0 0; } |
|
57 div.imagebr { background-position: 181px 117px; } |
|
58 |
|
59 div.vstripe, div.hstripe { background: white; position: absolute; } |
|
60 div.vstripe { top: 0; width: 2px; height: 500px; } |
|
61 div.hstripe { left: 0; height: 3px; width: 400px; } |
|
62 |
|
63 </style> |
|
64 </head> |
|
65 <body> |
|
66 |
|
67 <div class="color"></div> |
|
68 <div class="imagetl o"></div> |
|
69 <div class="imagebr o"></div> |
|
70 |
|
71 <div class="hstripe" style="top: 46px"></div> |
|
72 <div class="hstripe" style="top: 70px"></div> |
|
73 <div class="hstripe" style="top: 94px"></div> |
|
74 <div class="hstripe" style="top: 118px"></div> |
|
75 <div class="hstripe" style="top: 193px"></div> |
|
76 <div class="hstripe" style="top: 217px"></div> |
|
77 <div class="hstripe" style="top: 241px"></div> |
|
78 <div class="hstripe" style="top: 265px"></div> |
|
79 <div class="hstripe" style="top: 340px"></div> |
|
80 <div class="hstripe" style="top: 364px"></div> |
|
81 <div class="hstripe" style="top: 388px"></div> |
|
82 <div class="hstripe" style="top: 412px"></div> |
|
83 |
|
84 <div class="vstripe" style="left: 89px"></div> |
|
85 <div class="vstripe" style="left: 150px"></div> |
|
86 <div class="vstripe" style="left: 211px"></div> |
|
87 <div class="vstripe" style="left: 272px"></div> |
|
88 <div class="vstripe" style="left: 333px"></div> |
|
89 |
|
90 </body> |
|
91 </html> |