|
The
design of your page should always start with inserting a table. This
is perhaps the most important aspect of page design to date. This
section will explain fundamentals of what HTML Tables are, then start
you on the road to creating your own using the WebExpress Table
editing tools. If you're already familiar with Table basics, you may
wish to skip directly to the section Adding A Table To Your Web Page.
An
Overview Of HTML Tables
HTML
Tables allow you to be more precise when you position images and
text on your Web page.
A
Table is actually a grid of rectangular, editable areas on your Web page.
These
areas are called Cells, and they appear in Rows, which run from left
to right and Columns, which run from top to bottom.
Below
is a small table. It's borders are colored in blue so you can see
them. Normally the borders cannot be seen by the viewer, unless you
want people to see them...
|
Column 1 |
Column 2 |
Column 3 |
|
Row
1 |
|
CELL |
CELL |
CELL |
|
CELL |
CELL |
CELL |
|
CELL |
CELL |
CELL |
|
|
Row
2 |
|
Row 3 |
Unlike
the text and images you've entered into paragraphs thus far, the
paragraphs, images, or other HTML elements within each Table Cell are
treated independently by a browser.
For
example, the Table below illustrates how paragraphs in each Cell are
positioned independently next to one another on the page, rather than
in a single vertical series of paragraphs:
|
This is text |
 |
by a paragraph break and no indent |

...this is text below the image |
|
TEXT |
TEXT |
this is text... |
TEXT |
|
 |
This is a text paragraph
This is another |
TEXT |
TEXT |
|
This is text in bold blue |
TEXT |
TEXT |
 |
Note
also how the paragraphs in the Cells above are each aligned
differently. Since Table Cells are independently rendered on the
screen, the WebExpress Alignment Buttons (like Center, Left, and
Right Align) affect only the paragraph in a particular Cell.
Controlling
Table Appearance
-
You
can control the Width
of a Table and the width of each Column of Cells. This is done in two
ways: by specifying a width based on percentage of page (or Table)
width; or by specifying the exact width in terms of screen pixels. In
WebExpress,
Right
click on the table and choose Table Properties, or Cell Properties
to alter either.
-
The
Height of Table Cells is determined by what you place in
them, and the height of the Table itself is determined by of the
height of its highest Column of Cells. In the table above you can see
that the top row of cells is taller than the rows below it, this is
because there is more text in the 3 cell from the left, and this made
the cell grow in height.
-
You
can Span connected Table Columns and/or Rows, and make one
large Cell out of several smaller ones, as shown below:
|
TEXT |
TEXT |
TEXT |
|
TEXT |
TEXT IN A SPANNED CELL |
|
TEXT |
To
span cells highlight the each cell you want to put together,
then
select Span Cells from the Table menu.
Note
how the height of this Table is less than the height of the Table
above it. Remember that what a Cell contains determines the height of
the Cell, and the height of all Cells in a Column determines the
height of the Table as a whole.
In addition to
controlling Table and Cell width and height, you can also control the
Table Border Size (or leave the border invisible), you can control
the amount of Spacing between the contents of Table Cells and their
border, and you can specify how Cell contents are Vertically Aligned
within the Cell. You can even change the Background Color of
individual Table Cells. These options can be found by right clicking
on the table and selecting either Table Properties, or Cell
Properties (if you wish to change the properties of only one cell).
The table properties dialog box is shown in the instructions below.
Nesting
Tables
One of the
most powerful features of the HTML Table is its ability to be Nested
within another Table. Nesting a Table means that you can create an
independent Table within a Cell of an existing Table. For example,
all of the Tables shown on this page thus far are actually Nested
within a larger Table that contains the Row and Column information.
In reproducing the first Table on this page, below we've made the
outer Table's border visible so you can see it:
|
|
Column 1 |
Column 2 |
Column 3 |
|
Row
1 |
|
CELL |
CELL |
CELL |
|
CELL |
CELL |
CELL |
|
CELL |
CELL |
CELL |
|
|
Row
2 |
|
Row 3 |
|