1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: vertical-align</title>
5 <meta name="flags" content="ahem image interact">
6 <link rel="help" href="http://www.w3.org/TR/REC-CSS1#vertical-align">
7 <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
8 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
9 <style type="text/css">
10 p {font-size: 12pt;}
11 p.example { font: 15px/1 Ahem; color: blue; background: white url(support/square-white.png); border: 1px solid silver; padding: 0.5em; margin: 1em; }
12 .no {color: silver;}
13 big {font-size: 20px;}
14 small {font-size: 10px;}
15 .midalign {vertical-align: middle;}
16 </style>
17 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" title="10.8.1 Leading and half-leading">
18 </head>
19 <body>
20 <p class="explain">
21 Change your window size. However the lines wrap, the blue
22 rectanglues should always have their middles on the same alignment as
23 other blue rectangles on the line.
24 </p>
25 <p class="example">
26 ÉÉÉ
27 <img src="support/swatch-blue.png" alt="[Image]" height="30" class="midalign">
28 <span class="no" style="font-size: 250%;">xxx</span>
29 <img src="support/swatch-blue.png" alt="[Image]" height="50" class="midalign">
30 ÉÉÉ
31 <img src="support/swatch-blue.png" alt="[Image]" height="10" class="midalign">
32 <small class="no">xxx</small>
33 <img src="support/swatch-blue.png" alt="[Image]" height="20" class="midalign">
34 ÉÉÉ
35 <img src="support/swatch-blue.png" alt="[Image]" height="65" class="midalign">
36 ÉÉÉ
37 <img src="support/swatch-blue.png" alt="[Image]" height="35" class="midalign">
38 <span class="no" style="font-size: 2em;">xxx</span>
39 <img src="support/swatch-blue.png" alt="[Image]" height="50" class="midalign">
40 <span class="no" style="font-size: 150%;">xxx <span style="font-size: 250%;">xxx</span> xxx</span>
41 <img src="support/swatch-blue.png" alt="[Image]" height="50" class="midalign">
42 <small class="no">xxx</small>
43 <img src="support/swatch-blue.png" alt="[Image]" height="15" class="midalign">
44 <big class="no">xxx</big>
45 <img src="support/swatch-blue.png" alt="[Image]" height="90" class="midalign">
46 ÉÉÉ
47 </p>
48 </body>
49 </html>