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

Table Size

Ordinarily, the size of a table and its individual cells automatically expand to fit the data you place into it. However, you can choose to control the exact size of the entire table by putting width and/or height attributes in the <table> tag. You can also control the size of each cell by putting width and height attributes in the individual <td> tags. The width and height can be specified as either pixels or percentages. For example, the following HTML makes a table 500 pixels wide and 400 pixels high:

<table width="500" height="400">


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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