c544-valgn-003.xht (2561B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style type="text/css"><![CDATA[ 11 p {font-size: 12pt;} 12 p.example { font: 15px/1 Ahem; color: blue; background: white url(support/square-white.png); border: 1px solid silver; padding: 0.5em; margin: 1em; } 13 .no {color: silver;} 14 big {font-size: 20px;} 15 small {font-size: 10px;} 16 .midalign {vertical-align: middle;} 17 ]]></style> 18 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" title="10.8.1 Leading and half-leading"/> 19 </head> 20 <body> 21 <p class="explain"> 22 Change your window size. However the lines wrap, the blue 23 rectanglues should always have their middles on the same alignment as 24 other blue rectangles on the line. 25 </p> 26 <p class="example"> 27 ÉÉÉ 28 <img src="support/swatch-blue.png" alt="[Image]" height="30" class="midalign" /> 29 <span class="no" style="font-size: 250%;">xxx</span> 30 <img src="support/swatch-blue.png" alt="[Image]" height="50" class="midalign" /> 31 ÉÉÉ 32 <img src="support/swatch-blue.png" alt="[Image]" height="10" class="midalign" /> 33 <small class="no">xxx</small> 34 <img src="support/swatch-blue.png" alt="[Image]" height="20" class="midalign" /> 35 ÉÉÉ 36 <img src="support/swatch-blue.png" alt="[Image]" height="65" class="midalign" /> 37 ÉÉÉ 38 <img src="support/swatch-blue.png" alt="[Image]" height="35" class="midalign" /> 39 <span class="no" style="font-size: 2em;">xxx</span> 40 <img src="support/swatch-blue.png" alt="[Image]" height="50" class="midalign" /> 41 <span class="no" style="font-size: 150%;">xxx <span style="font-size: 250%;">xxx</span> xxx</span> 42 <img src="support/swatch-blue.png" alt="[Image]" height="50" class="midalign" /> 43 <small class="no">xxx</small> 44 <img src="support/swatch-blue.png" alt="[Image]" height="15" class="midalign" /> 45 <big class="no">xxx</big> 46 <img src="support/swatch-blue.png" alt="[Image]" height="90" class="midalign" /> 47 ÉÉÉ 48 </p> 49 </body> 50 </html>