HTML CSS Reference/HTML Attributes Reference/cellpadding

Материал из Web эксперт
Перейти к: навигация, поиск

"cellpadding" Example

<head><Title>Example For cellpadding</Title></head>
   <table width="542" 
             <th height="79" colspan="2">This table has cellpadding="15"; </th>
          <tr><td>Cell 1 </td>
              <td>Cell 2 </td>

cellpadding is applied to

| Applied_To     |<table>                                                       |

"cellpadding" Syntax and 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.
<table cellpadding="value"> . . . </table>