Notice that, no matter how the window is re-sized, the object remains centered.
CREATING A VERTICAL RULE (35b)
Sometimes, you may want one or more vertical rules, without having borders
around the entire table and every cell. To do this, just add a very thin
column in a desired color, as follows:
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=10>
<TR ALIGN=left VALIGN=top>
<TD WIDTH=3 BGCOLOR="green"><BR></TD>
You must keep cellpadding=0, or else the colored line will get
much thicker than you want. Add space between columns with the cellspacing
In Netscape, an empty cell disappears; the <BR> keeps this from
See the results of this code below this card!
TABLE ILLUSTRATING A VERTICAL RULE
first text column
second text column goes here
CREATING A COLORED BORDER
AROUND A BOX OF TEXT (35c)
Here's a way to create a colored border around a box of text, that will work for
all browsers. It works like this:
Create a table with cellpadding equal to the desired thickness of your border.
This table will have ONE horizontally and vertically centered element, which has
the desired BGCOLOR of the border.
The single element is itself a table, containing your desired text, with the
desired horizontal and vertical alignment, and desired interior color.
The code in (35d) gives a template to use. There are examples following (35d).