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 .topalign {vertical-align: top;}
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 tops on the same alignment as
23 other blue rectangles on the line.
24 </p>
25 <p class="example">
26 <span class="topalign">xxx</span>
27 <img src="support/swatch-blue.png" alt="[Image]" height="10" class="topalign">
28 <span style="font-size: 250%;" class="topalign">xxx</span>
29 <img src="support/swatch-blue.png" alt="[Image]" height="10" class="topalign">
30 <span class="topalign">xxx</span>
31 <img src="support/swatch-blue.png" alt="[Image]" height="10" class="topalign">
32 <span class="topalign">xxx</span>
33 <img src="support/swatch-blue.png" alt="[Image]" height="10" class="topalign">
34 <big class="topalign">xxx</big>
35 <img src="support/swatch-blue.png" alt="[Image]" height="20" class="topalign">
36 <span class="topalign">xxx</span>
37 <img src="support/swatch-blue.png" alt="[Image]" height="65" class="topalign">
38 <span class="topalign">xxx</span>
39 <img src="support/swatch-blue.png" alt="[Image]" height="35" class="topalign">
40 <span style="font-size: 2em;" class="topalign">xxx</span>
41 <img src="support/swatch-blue.png" alt="[Image]" height="50" class="topalign">
42 <span class="topalign">xxx</span>
43 <img src="support/swatch-blue.png" alt="[Image]" height="15" class="topalign">
44 <big class="topalign">xxx</big>
45 <img src="support/swatch-blue.png" alt="[Image]" height="90" class="topalign">
46 </p>
47 </body>
48 </html>