OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <link href="resources/grid.css" rel="stylesheet"> | |
4 <head> | |
5 <style> | |
6 .basic { | |
7 background-color: grey; | |
8 height: 100px; | |
9 margin-top: 50px; | |
10 } | |
11 | |
12 .item { | |
13 background-color: blue; | |
14 width: 50px; | |
15 height: 50px; | |
16 position: relative; | |
17 top: 20px; | |
18 } | |
19 </style> | |
20 </head> | |
21 <body> | |
22 <div>This test checks that the grid's margins do not collapse with the margins o f its contents.</div> | |
23 <div class="basic"> | |
24 <div class="item"></div> | |
25 </div> | |
26 </body> | |
27 </html> | |
28 | |
OLD | NEW |