display-applies-to-001.xht (1117B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Applying the property 'display' set to 'inline' to the 'a' element</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#propdef-display" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" /> 8 <meta name="assert" content="Display set to 'inline' applies the correct rendering behavior for the 'a' element." /> 9 <style type="text/css"> 10 /* Note that per the non-normative default stylesheet definition 'a' is already 'display: inline'. */ 11 a 12 { 13 display: inline; 14 } 15 </style> 16 </head> 17 <body> 18 <p>Test passes if all the "Filler Text" below is on the same line.</p> 19 <div> 20 Filler Text 21 <a>Filler Text</a> 22 Filler Text 23 </div> 24 </body> 25 </html>