OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link href="resources/grid.css" rel="stylesheet"> | 4 <link href="resources/grid.css" rel="stylesheet"> |
5 <style> | 5 <style> |
6 .grid { | 6 .grid { |
7 display: inline-grid; | 7 display: grid; |
8 grid-template-columns: 50px; | 8 grid-template-columns: 50px; |
9 grid-template-rows: 50px 50px; | 9 grid-template-rows: 50px 50px; |
10 width: 300px; | 10 width: 300px; |
11 height: 175px; | 11 height: 175px; |
12 background-color: transparent; | 12 background-color: transparent; |
| 13 float: left; |
13 } | 14 } |
14 | 15 |
15 .item { | 16 .item { |
16 width: 100px; | 17 width: 100px; |
17 height: 100px; | 18 height: 100px; |
18 } | 19 } |
19 | 20 |
20 .grid :nth-child(1) { | 21 .grid :nth-child(1) { |
21 background-color: #CCC; | 22 background-color: #CCC; |
22 } | 23 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 <div class="item bothRowFirstColumn"></div> | 71 <div class="item bothRowFirstColumn"></div> |
71 <div class="item secondRowFirstColumn"></div> | 72 <div class="item secondRowFirstColumn"></div> |
72 </div> | 73 </div> |
73 <div class="grid"> | 74 <div class="grid"> |
74 <div class="item bothRowFirstColumn"></div> | 75 <div class="item bothRowFirstColumn"></div> |
75 <div class="item secondRowFirstColumn"></div> | 76 <div class="item secondRowFirstColumn"></div> |
76 <div class="item firstRowFirstColumn"></div> | 77 <div class="item firstRowFirstColumn"></div> |
77 </div> | 78 </div> |
78 </body> | 79 </body> |
79 </html> | 80 </html> |
OLD | NEW |