HTML CSS Reference/HTML Attributes Reference/cellspacing

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

"cellspacing" Example

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

cellspacing is applied to

| Applied_To     |<table>                                                       |

"cellspacing" Syntax and Note

This attribute sets the width of the empty space between cells in a table. 
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 cellspacing="value"> . . . </table>