blob: 231edb6a68992563b30db341f35169c219700910 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
<!DOCTYPE html>
<style>
body { overflow: hidden; } /* Disable auto-scrollbars, to hide crbug.com/534751 */
.mc { -webkit-columns:2; -webkit-column-gap:20px; column-fill:auto; overflow:hidden; width:520px; height:80px; font-size:12px; line-height:20px; background:#ddd; }
table { border-spacing:5px; }
td:first-child { width:30px; }
td { padding:5px; }
.mc span { font-size:2em; line-height:30px; }
</style>
<p>The big text should be in the first column, and baseline-aligned with the line in its neighbor cell on the left:</p>
<div class="mc">
<table>
<tr style="vertical-align:baseline">
<td>
line<br>
line<br>
line<br>
line<br>
line<br>
line<br>
</td>
<td>
<span>1st column</span>
</td>
</tr>
</table>
</div>
<hr>
<p>The big text should be near the top in the first column:</p>
<div class="mc">
<table>
<tr style="vertical-align:top">
<td>
line<br>
line<br>
line<br>
line<br>
line<br>
line<br>
</td>
<td>
<span>1st column</span>
</td>
</tr>
</table>
</div>
<hr>
<p>The big text should be at the top in the second column:</p>
<div class="mc">
<table>
<tr style="vertical-align:middle">
<td>
line<br>
line<br>
line<br>
line<br>
line<br>
line<br>
</td>
<td>
<span>2nd column</span>
</td>
</tr>
</table>
</div>
<hr>
<p>The big text should be near the bottom in the second column:</p>
<div class="mc">
<table>
<tr style="vertical-align:bottom">
<td>
line<br>
line<br>
line<br>
line<br>
line<br>
line<br>
</td>
<td>
<span>2nd column</span>
</td>
</tr>
</table>
</div>
|