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

Chapter 9. Tables >  Controlling Space in and Around Cells

Controlling Space in and Around Cells

Cell spacing adds space between cells, making the table bigger without changing the size of individual cells. Cell padding adds space around the contents of a cell, in effect, pushing the walls of the cell outward. When using tables for layout, you often want to eliminate both kinds of spacing.

To control space in and around cells:

1.
Place the cursor in the TABLE tag before the final >.

2.
TypeCELLSPACING=n, where n is the number of pixels desired between each cell. (The attribute cellspacing is one word.)

3.
TypeCELLPADDING=n, where n is the number of pixels desired between the contents and the walls of the cell. (The attribute cellpadding is one word.)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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