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

Chapter 9. Tables > Setting the Width

Setting the Width

A browser will automatically determine the width of your table by calculating the width of the elements and text it contains. Somehow, it always seems to add a little extra. It's particularly important to manually set the width of each cell and of the table as a whole in order to eliminate this extra space.

To set the width of a cell or table:

In the TD or TABLE tag, type WIDTH=n, where n is the desired width of the cell or of the entire table, in pixels.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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