HTML/CSS/Table Attributes/cellpadding

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

"cellpadding" sets the empty width between a cell"s border and its content

    
<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>