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 Padding
[notify admin to delete page]
273
Cell Padding
Delete Section
Description
Cell Padding controls the distance between the text in the cell and the edge of the cell. To specify cell padding and it's distance, you add the line CELLPADDING="X" to the <TABLE> tag so the final result looks like: <TABLE CELLPADDING="X"> The X in the line, is replaced with the number of pixels you want between the text and cell edge.
Cell Padding controls the distance between the text in the cell and the edge of the cell. To specify cell padding and it's distance, you add the line CELLPADDING="X" to the <TABLE> tag so the final result looks like: <TABLE CELLPADDING="X"> The X in the line, is replaced with the number of pixels you want between the text and cell edge.
Code
<TABLE CELLPADDING="15"> <TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR> <TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR> </TABLE>
<TABLE CELLPADDING="15"> <TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR> <TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR> </TABLE>
Output
<TABLE CELLPADDING="15"> <TR> <TD> Cell 1 </TD> <TD> Cell 2 </TD> </TR> <TR> <TD> Cell 3 </TD> <TD> Cell 4 </TD> </TR> </TABLE>
Cell 1
Cell 2
Cell 3
Cell 4
Practice
Cannot Edit - Code section automatically placed here.
Click to add Section
Advertisements