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

Chapter 3. Rapid Rows, Cruising Columns:... > Your Pad Is My Space; My Space Is Yo...

Your Pad Is My Space; My Space Is Your Pad

Do you ever find yourself unable to remember the simplest things? No? Okay, then skip this tip—you’re obviously too good for it. For me, I can’t seem to remember the difference between cell padding and cell spacing. One controls the number of pixels between cells, and one is the margin within the cells—but which is which?

By default, Dreamweaver leaves both these values blank when you first insert a table. Of course, not having a value doesn’t mean the browser doesn’t use any padding or spacing. Browsers display 2 pixels for both values if you don’t specify a number. For a table full of structured data, I like to use rows with alternating background colors—which requires a 0 border and no room between the cells. (Otherwise, the background of the document will show through and break up the solid row background color.) Okay, so, in the Property inspector, I set the border to 0, but which of the two—cell padding or cell spacing—do I zero out? Here’s my memory trick: I know I’ve got to set the Border to 0, and who is Border’s good buddy, hanging out just to his left? Why it’s old CellSpace! So, I set CellSpace to 0 also and I’m solid—and so is my background color.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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