HTML CSS Reference/HTML Attributes Reference/cellpadding — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:20, 26 мая 2010
"cellpadding" Example
<HTML>
<head><Title>Example For cellpadding</Title></head>
<BODY>
<table width="542"
cellpadding="15">
<tr>
<th height="79" colspan="2">This table has cellpadding="15"; </th>
</tr>
<tr><td>Cell 1 </td>
<td>Cell 2 </td>
</tr>
</table>
</BODY>
</HTML>
cellpadding is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<table> |
+----------------+--------------------------------------------------------------+
"cellpadding" Syntax and Note
Note:
This attribute sets the empty width between a cell"s border and its content.
Its value can be an integer that specifies the amount of space in pixels.
Its value can also be a percentage of the total cell size to use as space.
Syntax:
<table cellpadding="value"> . . . </table>