HTML
|
JavaScript
Alignment
Basics
Character Codes
Colors
CSS
DIVS
Forms
Frames
Links
Lists and Bullets
Meta Tags
Multimedia
Pictures
Spacing
Tables
Text
Background Picture
Basic Table
Cell Padding
Cell Spacing
Colspan Rowspan
Table Alignment
Table Border
Table Colors
Table Shadow
Width and Height
Cell Spacing
272
Cell Spacing
Description
Cell Spacing controls the distance between the cells. To specify cell spacing and it's distance, you add the line CELLSPACING="X" to the <TABLE> tag so the final result looks like:
<TABLE CELLSPACING="X">
The X in the line, is replaced with the number of pixels you want between the cells.
Code
<TABLE CELLSPACING="15" border="1">
<TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR>
<TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR>
</TABLE>
Output
Cell 1
Cell 2
Cell 3
Cell 4
Practice
<TABLE CELLSPACING="15" border="1"> <TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR> <TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR> </TABLE>
Advertisements