OLD | NEW |
1 <div style="-webkit-column-count:2; column-count:2; column-fill:auto; border:2px
solid black; height:300px;"> | 1 <!DOCTYPE html> |
2 <div style="height:250px"></div> | 2 <style> |
3 <div style="position:relative"> | 3 .columns { |
4 <div style="position:absolute;height:200px;width:300px;background-color:lightgra
y"> | 4 -webkit-column-count: 2; |
5 This text should paginate across the columns.<br> | 5 -webkit-column-gap: 0; |
6 This text should paginate across the columns.<br> | 6 column-fill: auto; |
7 This text should paginate across the columns.<br> | 7 border: 2px solid black; |
8 This text should paginate across the columns.<br> | 8 height: 300px; |
9 This text should paginate across the columns.<br> | 9 line-height: 20px; |
| 10 } |
| 11 .relative { |
| 12 height: 250px; |
| 13 position: relative; |
| 14 } |
| 15 .absolute { |
| 16 position: absolute; |
| 17 width: 300px; |
| 18 background-color: lightgray; |
| 19 } |
| 20 </style> |
| 21 <div class="columns"> |
| 22 <div style="height: 250px"></div> |
| 23 <div class="relative"> |
| 24 <div class="absolute"> |
| 25 This text should be in the first column.<br> |
| 26 This text should be in the first column.<br> |
| 27 This text should be in the second column.<br> |
| 28 This text should be in the second column.<br> |
| 29 This text should be in the second column.<br> |
| 30 This text should be in the second column.<br> |
| 31 </div> |
| 32 </div> |
10 </div> | 33 </div> |
11 </div> | |
12 <div style="height:250px"></div> | |
13 </div> | |
OLD | NEW |