HTML Lessons
- HTML Introduction
- HTML Tags
- HTML Page Structure
- HTML Backgrounds
- HTML Formatting Text
- HTML Formatting Fonts
- HTML Headings
- HTML Entities
- HTML Line Breaks
- HTML Lists
- HTML HR- Horizontal Rule
- HTML Images
- HTML Links
- Table Introduction
- Table Rows & Columns
- Table Width
- Table Alignment
- Table Border Color
- Table Background Color
- Table Background Image
- Cell Alignment
- Cell Padding
- Cell Spacing
- Cell Spanning
|
Cellpadding
The cellpadding of a table determines how much space there will be between the
cell content and it's borders. For example:
<body>
<table cellpadding="10" border="1">
<tr>
<td>Text1</td>
<td>Text2</td>
</tr>
</table>
</body>
The result would be:
We can make the space even bigger:
<body>
<table cellpadding="20" border="1">
<tr>
<td>Text1</td>
<td>Text2</td>
</tr>
</table>
</body>
The result would be:
|