Forum Moderators: open
.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.