RetroZilla/layout/html/tests/table/bugs/bug2886.html
2015-10-20 23:03:22 -04:00

70 lines
1.5 KiB
HTML

<html><head>
<style>
.foo {border: 1px dashed red;}
</style>
</head>
<body>
<p>Tests of padding in table cells. </p>
<table border=0 cellpadding=10><tr><td valign=top>
<p><b>1) padding: 20px</b></p>
<table border=1>
<tr><td style="padding:20px;"><div class="foo">FOO</div></td></tr>
</table>
</td><td valign=top>
<p><b>2) padding: 10px 25px 30px 45px;</b></p>
<table border=1>
<tr><td style="padding: 10px 25px 30px 45px;"><div class="foo">FOO</div></td></tr>
</table>
</td></tr></table>
<br>
<table border=0 cellpadding=10><tr><td valign=top>
<p><b>3) padding-left: 20px</b></p>
<table border=1>
<tr><td style="padding-left:20px;"><div class="foo">FOO</div></td></tr>
</table>
</td><td valign=top>
<p><b>4) padding-right: 20px</b></p>
<table border=1>
<tr><td style="padding-right:20px;"><div class="foo">FOO</div></td></tr>
</table>
</td><td valign=top>
<p><b>5) padding-top: 20px</b></p>
<table border=1>
<tr><td style="padding-top:20px;"><div class="foo">FOO</div></td></tr>
</table>
</td><td valign=top>
<p><b>6) padding-bottom: 20px</b></p>
<table border=1>
<tr><td style="padding-bottom: 20px;"><div class="foo">FOO</div></td></tr>
</table>
</td></tr></table>
<br>
<p><b>misc) padding: 20px 10px 40px 0px</b></p>
<table border=1>
<tr><td style="padding: 20px 10px 40px 0px;"><div class="foo">FOO</div></td></tr>
</table>
<p><b>misc) padding-top: 10px; padding-bottom: 20px;</b></p>
<table border=1>
<tr><td style="padding-top: 10px; padding-bottom: 20px;"><div class="foo">FOO</div></td></tr>
</table>
</body></html>