OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
ojan
2014/05/21 18:40:57
We usually leave out the <html><head> and <body> e
jfernandez
2014/05/22 15:16:52
Done, even that most of the files in the css-grid-
| |
3 <link href="resources/grid.css" rel="stylesheet"> | |
4 <head> | |
5 <style> | |
6 .grid { | |
7 background-color:grey; | |
8 } | |
9 .gridItem { | |
ojan
2014/05/21 18:40:57
It'd be good to give each grid item a different ba
jfernandez
2014/05/22 15:16:52
Actually, the "firstRowSecondColumn" and related s
| |
10 width: 50px; | |
11 height: 50px; | |
12 } | |
13 </style> | |
14 </head> | |
15 <body> | |
16 <div>This test checks that the grid's items are not affected by the 'float' and 'clear' properties.</div> | |
17 <div class="grid"> | |
18 <div style="float: right;" class="gridItem firstRowFirstColumn"></div> | |
ojan
2014/05/21 18:40:57
Why are there 6 divs here and only 4 in the expect
jfernandez
2014/05/22 15:16:52
Done.
ojan
2014/05/23 02:13:36
I'm still confused by this. Do some of the divs ob
jfernandez
2014/05/23 14:57:06
I understand what you mean and I agree; it's confu
| |
19 <div class="gridItem firstRowFirstColumn"></div> | |
20 <div style="float: left;" class="gridItem firstRowSecondColumn"></div> | |
21 <div style="float: right;" class="gridItem secondRowFirstColumn"></div> | |
22 <div style="clear: right;" class="gridItem secondRowFirstColumn"></div> | |
23 <div style="float: left;" class="gridItem secondRowSecondColumn"></div> | |
24 </div> | |
25 </body> | |
26 </html> | |
27 | |
OLD | NEW |