OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .squashed { | |
6 height: 40px; | |
7 width: 40px; | |
8 background-color: lightgreen; | |
9 position: absolute; | |
10 top: 90px; | |
11 } | |
12 .composited { | |
13 position: absolute; | |
14 margin-top: 5px; | |
15 height: 100px; | |
16 width: 100px; | |
17 background-color: lightblue; | |
18 } | |
19 #target3 { | |
20 background-color: green; | |
21 } | |
22 </style> | |
23 </head> | |
24 <body> | |
25 <div id="target2" class="second composited"> | |
26 </div> | |
27 <div id="target3" class="squashed"></div> | |
28 </body> | |
29 </html> | |
OLD | NEW |