inline-block-baseline-001-ref.xht (582B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 <title>Vertical-align: baseline of an inline-block depends on 'overflow'</title> 7 8 <link rel="author" title="Bert Bos" href="mailto:bert@w3.org" /> 9 10 11 <style type="text/css"><![CDATA[ 12 body {background: white; color: black; font-size: 15px} 13 p {white-space: nowrap; line-height: 5} 14 ]]></style> 15 </head> 16 17 <body> 18 <p> 19 All the <span>words</span> are aligned on the same baseline. 20 </p> 21 </body> 22 </html>