Warning: include(http://www.studio6000.com/header.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/studio60/public_html/html/lesson15f.php on line 12

Warning: include() [function.include]: Failed opening 'http://www.studio6000.com/header.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studio60/public_html/html/lesson15f.php on line 12

Warning: include(http://www.studio6000.com/tutorside.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/studio60/public_html/html/lesson15f.php on line 17

Warning: include() [function.include]: Failed opening 'http://www.studio6000.com/tutorside.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studio60/public_html/html/lesson15f.php on line 17
 

Cellspacing

We can also control how much distance there will be between cells.


<body>
<table cellspacing="10" border="1">
<tr>
<td>Text1 </td>
<td>Text2 </td>
</tr>
</table>
</body>

Text1 Text2

We can make that distance even bigger:


<body>
<table cellspacing="20" border="1">
<tr>
<td>Text1 </td>
<td>Text2 </td>
</tr>
</table>
</body>

Text1 Text2

You can also put both the cellpadding and the cellspacing attributes together, like so:


<body>
<table cellspacing="20" cellpadding="20" border="1">
<tr>
<td>Text1 </td>
<td>Text2 </td>
</tr>
</table>
</body>

Text1 Text2

By default the cellpadding and the cellspacing will be 2.  By setting the values to 0 the borders will appear as simple grey  lines as shown below:


<body>
<table cellspacing="0" cellpadding="0" border="1">
<tr>
<td>Text1 </td>
<td>Text2 </td>
</tr>
</table>
</body>

Text1 Text2

Next Lesson


Warning: include(http://www.studio6000.com/footer.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/studio60/public_html/html/lesson15f.php on line 132

Warning: include() [function.include]: Failed opening 'http://www.studio6000.com/footer.htm' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/studio60/public_html/html/lesson15f.php on line 132