|
|
||||||||
Chapter 9: TablesTables are one of the most useful features used in Web design. Besides displaying tabulated data, tables can be used to precisely position content on a website. The Table Design ProcessTables use more than one element. To begin with, use the Tables consist of rows and columns. These are defined using the elements
When you begin to create the layout of a table, it is easiest to create a row, and then divide that row into columns. The following example shows a one row table divided into three columns:
The table's data for each cell can then be placed between the appropriate More rows can be added by repeating the previous steps (ie: inserting more You can also create headers (labels for each column) for the table. To do this, use the
You can easily insert tables using BestAddress by choosing Table from the Insert menu. Spanning Multiple Rows or ColumnsSometimes it is necessary to have a single cell span (or take up more than one) cell's space. To do this, use the
When previewed in a Web browser, the above example will look something like this:
Vertical AlignmentText displayed in the table is vertically aligned in the middle. If one of the table's cells however contains a large amount of text and the other's don't, the table will resize to meet the requirements of the largest cell. The text in all other cells will align in the middle of the cell, leaving large gaps above and below. If you want to align all a cell's text at a certain position, you can use the Other AttributesTables support a wide range of other attributes. See the Online HTML Reference for a full list of these along with a description. Aligning Document Content with TablesIt is difficult to position the content of a webpage accurately. To overcome this problem, many website designs use tables to assist in the layout of the webpage. Because tables are able to contain most of the same things as you can put into the webpage itself, using a table with its border set to 0 allows you to accurately position content. Where to from here?Get yourself prepared for publishing your own website in Chapter 10: Creating a Website. |
||||||||
![]()
A Multimedia Australia website.
Copyright © 2001 - 2010 Multimedia Australia Pty. Ltd.
Australian Company Number 096 830 394. All rights reserved.
ABN 78 096 830 394
Terms of use. Disclaimer. Privacy Statement.