|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <head> |
|
4 <title>Test that cellpadding, cellspacing, border, etc., don't break table sizing.</title> |
|
5 <style type="text/css"> |
|
6 |
|
7 html, body { margin: 0 } /* no collapsing */ |
|
8 |
|
9 table, td { |
|
10 border: none; |
|
11 margin: 0; |
|
12 padding: 0; |
|
13 border-spacing: 0; |
|
14 } |
|
15 |
|
16 body > table { margin: 28px 29px 34px 35px; } |
|
17 body { background: white; color: black; } |
|
18 |
|
19 div { background: olive; color: black; } |
|
20 |
|
21 </style> |
|
22 </head> |
|
23 <body> |
|
24 <table width="1"><tr><td> |
|
25 <table><tr><td> |
|
26 <div>This is some text.</div> |
|
27 </td></tr></table> |
|
28 </td></tr></table> |
|
29 </body> |
|
30 </html> |