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: top</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/inline/vertical-align/001.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height">
8 <style type="text/css">
9 .ahemprereq { display: inline; font: 900 1em/1 Ahem, sans-serif; background: red; color: white; }
10 div { color: navy; text-align: center; width: 6em; font: 2em/1 Ahem; }
11 span { font-size: 2em; }
12 .bottom { border-bottom: solid blue; }
13 .bottom span { vertical-align: bottom; }
14 .top span { vertical-align: top; }
15 </style>
16 </head>
17 <body>
18 <p class="ahemprereq">Ahem_font_required_for_this_test._See_directory_listing_for_details.</p>
19 <p>There should be a plus sign below with a blue line through the middle of it.</p>
20 <div class="bottom">x<span>X</span>x</div>
21 <div class="top">x<span>X</span>x</div>
22 </body>
23 </html>