tor-browser

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

table-height-algorithm-017.xht (1568B)


      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' aligns content to the middle of the 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 cell with Vertical-align set to 'middle' aligns cell content in the middle of the cell." />
      8         <style type="text/css">
      9            table
     10             {
     11                 height: 100px;
     12             }
     13             td
     14             {
     15                 border: 1px solid black;
     16                 vertical-align: middle;
     17             }
     18             #small
     19             {
     20                 font-size: 10pt;
     21             }
     22             #medium
     23             {
     24                 font-size: 20pt;
     25             }
     26             #large
     27             {
     28                 font-size: 30pt;
     29             }
     30         </style>
     31     </head>
     32     <body>
     33         <p>Test passes if the "Filler Text" below is vertically aligned to the middle of their boxes.</p>
     34         <table>
     35             <tr>
     36                 <td>
     37                     <div id="small">Filler Text</div>
     38                 </td>
     39                 <td>
     40                     <div id="medium">Filler Text</div>
     41                 </td>
     42                 <td>
     43                     <div id="large">Filler Text</div>
     44                 </td>
     45             </tr>
     46         </table>
     47     </body>
     48 </html>