Web Hosting Talk







View Full Version : border around outside of table only


crazyfish
01-17-2005, 03:33 PM
I want to put a border around the outisde of the table only but in dreamweaver it puts it around all the cells. So how would you put it around the edge of the table but not through the cells? Can it be done?

the_pm
01-17-2005, 03:44 PM
In your style sheet:
.foo { border:1px solid #0F0 }
(this will give a bright green color - restyle it as you see fit by changing the hex code)

In your HTML document
<table class="foo">
(and then the rest of your code, and whatever else you need to declare in your table tag)

e-zone
01-17-2005, 04:51 PM
To get full control over your borders try this code

.foo { border-color: #0F0; border-style: solid; border-width: 1px 1px 1px 1px; }

The "1px 1px 1px 1px" is = Top-right-bottom-left border.

just for the future if you wish more control ;) the_pm's trick does what you need for now.

crazyfish
01-17-2005, 05:00 PM
thanks guys, it was just what I needed