tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

table-height-algorithm-018.xht (1185B)


      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: Vertical-align set to 'middle' with a spanning cell</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#height-layout" />
      7         <meta name="assert" content="A spanning cell with 'vertical-align' set to 'middle' aligns content to the vertical center of the rows it spans." />
      8         <style type="text/css">
      9             table
     10             {
     11                 height: 200px;
     12             }
     13             #cell
     14             {
     15                 border: 1px solid black;
     16                 vertical-align: middle;
     17             }
     18         </style>
     19     </head>
     20     <body>
     21         <p>Test passes if the "Filler Text" below is vertically aligned to the middle of the box.</p>
     22         <table>
     23             <tr>
     24                 <td></td>
     25                 <td id="cell" rowspan="2">Filler Text</td>
     26             </tr>
     27             <tr>
     28                 <td></td>
     29             </tr>
     30         </table>
     31     </body>
     32 </html>