• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 56. Designing Data Tables > Adjusting Cellpadding and Cellspacing

Adjusting Cellpadding and Cellspacing

Normally, when you create a layout table, you set the table tag's cellpadding and cellspacing attributes to 0. But when you build a data table, cellpadding and cellspacing are useful formatting tools. Cellpadding determines the amount of interior whitespace between the edges of a table cell and its content, while cellspacing determines the amount of exterior whitespace between individual table cells.

When you set the cellpadding and cellspacing attributes in the table tag, their values apply to every cell in the table:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint