ap | 9cd074c | 2006-01-05 20:48:53 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
thatcher | ffd46e0 | 2005-10-25 00:42:22 +0000 | [diff] [blame] | 2 | <html> |
| 3 | <head> |
| 4 | <title>CSS 2.1 Test Suite: margin-bottom</title> |
| 5 | <style type="text/css"> |
| 6 | .test { font: 10px/1 Ahem; width: 10em; border: solid black; padding: 0; background: yellow; color: orange; } |
| 7 | .zero {background-color: teal; margin-bottom: 0;} |
| 8 | .one {margin-bottom: 5.29166mm; background-color: aqua;} |
| 9 | .two {margin-bottom: 20px; background-color: blue;} |
| 10 | .three {margin-bottom: 2em; background-color: aqua;} |
| 11 | .four {margin-bottom: 20%; background-color: teal;} |
| 12 | .five {margin-bottom: 20px;} |
| 13 | .six {margin-bottom: -10px; background-color: aqua;} |
| 14 | p, ul, li {margin: 0; padding: 0; list-style:none;} |
| 15 | |
| 16 | .control { border: solid black; padding: 0; background: red; } |
| 17 | .control .teal { background: teal; } |
| 18 | .control .aqua { background: aqua; } |
| 19 | .control .blue { background: blue; } |
| 20 | .control .yellow { background: yellow; } |
| 21 | .control .long { width: 70px; height: 10px; background: orange; } |
| 22 | .control .short { width: 40px; height: 10px; background: orange; } |
| 23 | .control .blank { width: 100px; height: 20px; } |
| 24 | </style> |
darin | ec37548 | 2007-01-06 01:36:24 +0000 | [diff] [blame] | 25 | <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#margin-properties" title="8.3 Margin properties: 'margin-top', 'margin-right', 'margin-bottom', 'margin-left', and 'margin'"> |
thatcher | ffd46e0 | 2005-10-25 00:42:22 +0000 | [diff] [blame] | 26 | </head> |
| 27 | <body> |
| 28 | <p>The two diagrams below should be identical, with no red present.</p> |
| 29 | <table> |
| 30 | <tr> |
| 31 | <td class="test"> |
| 32 | <p class="zero"> |
| 33 | xxxxxxx |
| 34 | </p> |
| 35 | <p class="zero"> |
| 36 | xxxx |
| 37 | </p> |
| 38 | <p class="one"> |
| 39 | xxxxxxx xxxx |
| 40 | </p> |
| 41 | <p class="two"> |
| 42 | xxxxxxx xxxx |
| 43 | </p> |
| 44 | <p class="three"> |
| 45 | xxxxxxx xxxx |
| 46 | </p> |
| 47 | <p class="four"> |
| 48 | xxxxxxx xxxx |
| 49 | </p> |
| 50 | <ul class="two"> |
| 51 | <li>xxxxxxx</li> |
| 52 | <li>xxxx</li> |
| 53 | <li class="five">xxxxxxx</li> |
| 54 | <li>xxxx</li> |
| 55 | </ul> |
| 56 | <p class="zero"> |
| 57 | xxxxxxx xxxx |
| 58 | </p> |
| 59 | <p class="six"> |
| 60 | xxxxxxx xxxx |
| 61 | </p> |
| 62 | <p class="zero"> |
| 63 | xxxx |
| 64 | </p> |
| 65 | </td> |
| 66 | <td class="control"> |
| 67 | <div class="teal"><div class="long"></div><div class="short"></div></div> |
| 68 | <div class="aqua"><div class="long"></div><div class="short"></div></div> |
| 69 | <div class="yellow"><div class="blank"></div></div> |
| 70 | <div class="blue"><div class="long"></div><div class="short"></div></div> |
| 71 | <div class="yellow"><div class="blank"></div></div> |
| 72 | <div class="aqua"><div class="long"></div><div class="short"></div></div> |
| 73 | <div class="yellow"><div class="blank"></div></div> |
| 74 | <div class="teal"><div class="long"></div><div class="short"></div></div> |
| 75 | <div class="yellow"><div class="blank"></div></div> |
| 76 | <div class="blue"><div class="long"></div><div class="short"></div><div class="long"></div></div> |
| 77 | <div class="blue"><div class="blank"></div></div> |
| 78 | <div class="blue"><div class="short"></div></div> |
| 79 | <div class="yellow"><div class="blank"></div></div> |
| 80 | <div class="teal"><div class="long"></div><div class="short"></div></div> |
| 81 | <div class="aqua"><div class="long"></div></div> |
| 82 | <div class="teal"><div class="short"></div></div> |
| 83 | </td> |
| 84 | </tr> |
| 85 | </table> |
| 86 | </body> |
| 87 | </html> |