OLD | NEW |
1 <html> | 1 <!DOCTYPE html> |
2 <head> | |
3 <style> | 2 <style> |
4 body { overflow: hidden; } | 3 .container { width:120px; position: absolute; } |
5 .container { display:inline-block; width:220px; } | 4 .multicol { -moz-column-width:50px; -moz-column-gap:10px; -webkit-column-width:5
0px; -webkit-column-gap:10px; column-width:50px; column-gap:10px; column-fill:au
to; height:150px; border:5px solid black; } |
6 .multicol { -moz-column-width:100px; -moz-column-gap:10px; -webkit-column-width:
100px; -webkit-column-gap:10px; column-width:100px; column-gap:10px; column-fill
:auto; height:300px; border:5px solid black; } | 5 .block { width:50px; height:50px } |
7 .block { width:100px; height:100px } | |
8 .block:hover { background-color: maroon !important; } | 6 .block:hover { background-color: maroon !important; } |
9 .layer { height:400px; width:100px } | 7 .layer { height:200px; width:50px } |
10 .line2 { position: absolute; top: 343px; left: 8px; } | 8 .line2 { position: absolute; top: 343px; left: 8px; } |
| 9 .pos1 { left: 10px; top: 10px; } |
| 10 .pos2 { left: 150px; top: 10px; } |
| 11 .pos3 { left: 10px; top: 200px; } |
| 12 .pos4 { left: 150px; top: 200px; } |
11 </style> | 13 </style> |
12 <body> | 14 <div class="container pos1"> |
13 | |
14 <div class="container"> | |
15 Overflow: | 15 Overflow: |
16 <div class="multicol"> | 16 <div class="multicol"> |
17 <div class="block" style="display:inline-block; background-color:black"></div> | 17 <div class="block" style="background-color:black"></div> |
18 <div style="overflow:hidden;" class="layer"> | 18 <div style="overflow:hidden;" class="layer"> |
19 <div class="block" style="background-color: #0000f0"></div> | 19 <div class="block" style="background-color: #0000f0"></div> |
20 <div class="block" style="background-color: #0000d0"></div> | 20 <div class="block" style="background-color: #0000d0"></div> |
21 <div class="block" style="background-color: #0000b0"></div> | 21 <div class="block" style="background-color: #0000b0"></div> |
22 <div class="block" style="background-color: #000090"></div> | 22 <div class="block" style="background-color: #000090"></div> |
23 </div> | 23 </div> |
24 <div class="block" style="display:inline-block; background-color:black"></div> | 24 <div class="block" style="background-color:black"></div> |
25 </div> | 25 </div> |
26 </div> | 26 </div> |
27 | 27 |
28 <div class="container"> | 28 <div class="container pos2"> |
29 Transforms: | 29 Transforms: |
30 | 30 |
31 <div class="multicol"> | 31 <div class="multicol"> |
32 <div class="block" style="display:inline-block; background-color:black"></div> | 32 <div class="block" style="background-color:black"></div> |
33 <div style="margin-left: -100px; -webkit-transform: translate(100px, 0);" class=
"layer"> | 33 <div style="margin-left: -100px; -webkit-transform: translate(100px, 0);" class=
"layer"> |
34 <div class="block" style="background-color: #0000f0"></div> | 34 <div class="block" style="background-color: #0000f0"></div> |
35 <div class="block" style="background-color: #0000d0"></div> | 35 <div class="block" style="background-color: #0000d0"></div> |
36 <div class="block" style="background-color: #0000b0"></div> | 36 <div class="block" style="background-color: #0000b0"></div> |
37 <div class="block" style="background-color: #000090"></div> | 37 <div class="block" style="background-color: #000090"></div> |
38 </div> | 38 </div> |
39 <div class="block" style="display:inline-block; background-color:black"></div> | 39 <div class="block" style="background-color:black"></div> |
40 </div> | 40 </div> |
41 </div> | 41 </div> |
42 </div> | 42 </div> |
43 | 43 |
44 <div class="container"> | 44 <div class="container pos3"> |
45 Relative Positioning: | 45 Relative Pos.: |
46 <div class="multicol"> | 46 <div class="multicol"> |
47 <div class="block" style="display:inline-block; background-color:black"></div> | 47 <div class="block" style="background-color:black"></div> |
48 <div style="position:relative; margin-left:-100px; left:100px" class="layer"> | 48 <div style="position:relative; margin-left:-100px; left:100px" class="layer"> |
49 <div class="block" style="background-color: #0000f0"></div> | 49 <div class="block" style="background-color: #0000f0"></div> |
50 <div class="block" style="background-color: #0000d0"></div> | 50 <div class="block" style="background-color: #0000d0"></div> |
51 <div class="block" style="background-color: #0000b0"></div> | 51 <div class="block" style="background-color: #0000b0"></div> |
52 <div class="block" style="background-color: #000090"></div> | 52 <div class="block" style="background-color: #000090"></div> |
53 </div> | 53 </div> |
54 <div class="block" style="display:inline-block; background-color:black"></div> | 54 <div class="block" style="background-color:black"></div> |
55 </div> | 55 </div> |
56 </div> | 56 </div> |
57 | 57 |
58 <div class="container line2"> | 58 <div class="container pos4"> |
59 Opacity: | 59 Opacity: |
60 | 60 |
61 <div class="multicol"> | 61 <div class="multicol"> |
62 <div class="block" style="display:inline-block; background-color:black"></div> | 62 <div class="block" style="background-color:black"></div> |
63 <div style="opacity:0.99;" class="layer"> | 63 <div style="opacity:0.99;" class="layer"> |
64 <div class="block" style="background-color: #0000f0"></div> | 64 <div class="block" style="background-color: #0000f0"></div> |
65 <div class="block" style="background-color: #0000d0"></div> | 65 <div class="block" style="background-color: #0000d0"></div> |
66 <div class="block" style="background-color: #0000b0"></div> | 66 <div class="block" style="background-color: #0000b0"></div> |
67 <div class="block" style="background-color: #000090"></div> | 67 <div class="block" style="background-color: #000090"></div> |
68 </div> | 68 </div> |
69 <div class="block" style="display:inline-block; background-color:black"></div> | 69 <div class="block" style="background-color:black"></div> |
70 </div> | 70 </div> |
71 </div> | 71 </div> |
OLD | NEW |