Forum Moderators: open

Message Too Old, No Replies

How to create a border for a table in FrontPage

         

seasalt

6:53 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



Hi:

I have a table that consists of 3 columns x 16 rows. I want to put a border around the entire outside but when I do it puts a border around each individual cell. Is there a way to put it just around the outside?

seasalt

Poppy122

9:15 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



Insert a table and create a border. Insert into this table your 3 column table.

gregdi

6:36 pm on Nov 15, 2003 (gmt 0)

10+ Year Member



You could also add a border using CSS. all you would need to do is add the following to your style sheet:

.border { border: 1px solid #000080 }

Then, for the table you want borders for, you add the style class to the table like this:

<table class="border">

One thing I had trouble with when doing this is cross compatability with Netscape. When I tried making it with Frontpage initially, the border showed up okay with Internet Explorer but wouldn't show up in Netscape at all. That is because Frontpage (2000 at least) writes it this way:

.border { border: 1 solid #000080 }

Without adding "px" to the border width, it won't show up in Netscape or Mozilla. I stumbled across this while trying to make my site cross compatible with Netscape. I like this way better than nesting tables because it makes editing the html less confusing and if I decided to change the color or width of the border I only need to change my style sheet to do so.