| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <title>CSS Test: Cell padding is included in column width</title> | |
| <style type="text/css"> | |
| table | |
| { | |
| background: orange; | |
| border-collapse: separate; | |
| border-spacing: 10px 0; | |
| table-layout: fixed; | |
| width: 130px; | |
| } | |
| td | |
| { | |
| background: blue; | |
| height: 100px; | |
| padding-left: 10px; | |
| padding-right: 10px; | |
| padding-top: 0; | |
| padding-bottom: 0; | |
| } | |
| #specified | |
| { | |
| width: 10px; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <p>Test passes if all of the blue lines below appear to have the same width.</p> | |
| <table> | |
| <tr> | |
| <td id="specified"></td> | |
| <td></td> | |
| <td></td> | |
| </tr> | |
| </table> | |
| </body> | |
| </html> |