gecko/layout/html/tests/table/other/padding.html

40 lines
1.1 KiB
HTML
Raw Normal View History

<HTML><BODY>
This table should have cell padding of 5px
<table border cellpadding=5>
<TR><TD>AAA</td><td>BBBB</td></tr>
<TR><TD>AAA</td><td>BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell padding of 5px
<table border>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell padding of 5px
<table border cellpadding=0>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell padding of 5px except the 1st cell's left padding will be 0
<table border cellpadding=5>
<TR><TD style="padding-left:0px;">AAA</td><td>BBBB</td></tr>
<TR><TD >AAA</td><td>BBBB</td></tr>
</table>
<BR>
This table should have cell padding of 5px except the last cell's left padding will be 30
<table border cellpadding=5>
<TR><TD>AAA</td><td>BBBB</td></tr>
<TR><TD >AAA</td><td style="padding-left:30px;">BBBB</td></tr>
</table>
</body></html>