My Navigation Bar

Playing With Tables

This section just plays around with some of the things you can do to make tables.

exphorsd.gif (964 bytes)

Table Borders

expbul2d.gif (852 bytes) Table borders outline the table and it's cells. This table has a border size of 4, and border colors of Grey, Silver, Black. (Note: border colors aren't implemented in Netscape Navigator 3.0)

  Table  
  Column 1 Column 2
Row 1 Cell 1 Cell 2
Row 2 Cell 3 Cell 4

exphorsd.gif (964 bytes)

Merging Adjacent Cells

expbul2d.gif (852 bytes) Select a row in a table, or adjacent cells.

  Table  
  Column 1 Column 2
Row 1 Cell 1 Cell 2
Row 2 Cell 3 Cell 4

expbul2a.gif (871 bytes) Then use the Table menu Merge Cells, to merge the cells.

Table
  Column 1 Column 2
Row 1 Cell 1 Cell 2
Row 2 Cell 3 Cell 4

exphorsd.gif (964 bytes)

Tables In Tables

expbul2d.gif (852 bytes) Create a 2 row, 1 column table

Table
 

expbul2a.gif (871 bytes) Move the cursor to the bottom cell, then using the Table menu, insert a 3 row, 3 column table (note: I set the border of this table to 1, and border color to Grey)

Table
     
     
     

expbul2a.gif (871 bytes) Select the left column, of inserted table

Table
     
     
     

expbul2a.gif (871 bytes) Then merge the cells

Table
     
   
   

expbul2a.gif (871 bytes) As you type in each letter for the word 'Rows', use the Insert menu, Break sub-menu, to insert a Normal Line Break after each letter.

Table
R
o
w
s
Column 1 Column 2
Cell 1 Cell 2
Cell 3 Cell 4

exphorsd.gif (964 bytes)

Inserting a Column

expbul2d.gif (852 bytes) Move the cursor to Cell 2, then use the Table menu, Insert Rows or Columns, to insert 1 column to the right.

Table
R
o
w
s
Column 1 Column 2 Column 3
Cell 1 Cell 2  
Cell 3 Cell 4  

exphorsd.gif (964 bytes)

Cell Alignment

expbul2d.gif (852 bytes) Using the Cell Properties dialog you can horizontally align the words in a cell to the Left, Center, or Right.

Table
R
o
w
s
Column 1 Column 2 Column 3
Left Center Right
Left Center Right

expbul2a.gif (871 bytes) Using the Cell Properties dialog you can veritcally align the words in a cell to the Top, Middle, or Bottom. (Note: I selected each colum of the sub-table, and merged the cells, to change the table layout.)

Table
R
o
w
s
Column 1 Column 2 Column 3

exphorsd.gif (964 bytes)

Fixed Width

expbul2d.gif (852 bytes) It is often useful to fix the widths of columns. Select Column 1, Column 2, Column 3, and using the Cell Properties dialog, check the Specify Width check box, and set the width of the columns to 100 pixels.

Table
R
o
w
s
Column 1 Column 2 Column 3

exphorsd.gif (964 bytes)

Coloring Cells

expbul2d.gif (852 bytes) Using the Cell Properties dialog, you can set the background color of a cell.

Table
R
o
w
s
Column 1 Column 2 Column 3

exphorsd.gif (964 bytes)

Table Alignment

expbul2d.gif (852 bytes) Using the Table Properties Dialog, you can align the table on the page.

Left
R
o
w
s
Column 1 Column 2 Column 3

 

Center
R
o
w
s
Column 1 Column 2 Column 3

 

Right
R
o
w
s
Column 1 Column 2 Column 3

exphorsd.gif (964 bytes)

Bold Borders

expbul2d.gif (852 bytes) Although Netscape Navigator does not support colored borders, you can create Bold Borders which are colored in both Netscape and MSIE, by adding extra rows and columns to your table.

             
      Hello World      
             

expbul2a.gif (871 bytes) Using my favorite spacers (periods set to the appropriate color) to fill in the surrounding cells for the desired spacing.

.. .. . . . .. ..
. . .. Hello World .. . .
. . . . . . .

expbul2a.gif (871 bytes) Then just set the background colors of the cells to create a bold border.

.. .. . . . .. ..
. . .. Hello World .. . .
. . . . . . .

expbul2d.gif (852 bytes) Another variation on this, is to use a transparent GIF spacer. Create your table with surrounding rows and columns.

     
     
     

expbul2a.gif (871 bytes) Put a transparent GIF in the surrounding cells, and set the background colors.

w2x2.gif (809 bytes) . .
. Spacers.  
. . w2x2.gif (809 bytes)

expbul2a.gif (871 bytes) And here is the final result with thin borders (I used a 2x2 GIF).

w2x2.gif (809 bytes) w2x2.gif (809 bytes) w2x2.gif (809 bytes)
w2x2.gif (809 bytes)  Spacers  w2x2.gif (809 bytes)
w2x2.gif (809 bytes) w2x2.gif (809 bytes) w2x2.gif (809 bytes)

exphorsd.gif (964 bytes)

Thin Table Border

expbul2d.gif (852 bytes) This will give you a border that works both in Netscape and MSIE. The concept is to put one table inside of another. Set the background color of the outside table to the desired border color. Set the background color of the inside table to the desired background of the element you are inserting. The controlling parameters for the border are on the outside table, Cell Padding for thickness, and Background Color for color. The tricky part of this technique is selecting the outer table after you have inserted the inner table, you use the mouse on the left hand dotted border of the outer table and click (the mouse will change to a black sideways arrow).

Note: To keep FrontPage from inserting a blank line after (under) the inner table, always type at least one character into the Inner Table's cell, before saving your file.

expbul2a.gif (871 bytes) First create a 1 row 1 cell table.

 

expbul2a.gif (871 bytes) Then set the table properties as follows, set the Backgound Color to your border color, and the Cell Padding to your border thickness. Set the Cell Properties of the cell for the table, Horizontal Alignment to Center, and Vertical Alignment to Middle.

expbul2a.gif (871 bytes) Position the cursor inside the table, then Insert a new table.

.

expbul2a.gif (871 bytes) Set the key table properties of the inner table, set the alignment to Center, and the Background color to your desired color. You can set any other parameters to what you want. I set the Cell Padding (margin) of the inner table to 8, so the text is not up against the border.

All Done

exphorsa.gif (999 bytes)

 [Home] [ScrapBook] [Chat] [Links] [Contact] [FrontPage]
This page hosted by GeoCities Get your own Free Home Page
JES - 03/28/98