Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

What am I doing wrong-seems simple

Can't get table border to look right in css

8:42 pm on Jul 11, 2004 (gmt 0)

New User

10+ Year Member

joined:June 24, 2004
votes: 0

I am so bad with css.
Currently, this is the html I have for a table: Currently, the only property (?) I'm using in that "second" class is for the color of the table.

<a href="http://www.mysite.com/1">TD 1</a>
<a href="http://www.mysite.com/2">TD 2</a>
<a href="http://www.mysite.com">TD 3</a>

In my external css I have this table class
.second { background: #cccccc;
spacing: 0px;
padding: 0px;
border: 5px #000000;

When I remove all the orignal table commands on my page the table looks like, well, not a table. Basically a tble with no borders or even seperate cells.

9:39 pm on July 11, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 14, 2004
votes: 0

If you are trying to get borders on the individual cells, you need to apply the border rule to the td's. As it is, you should have a border around the whole table, only.
9:56 pm on July 11, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:May 2, 2004
votes: 0

See if this is what you are after:

1) Remove the border=3 from the table itself
2) Change your border declaration in your style to border: 5px solid #000000;

Hope that's it.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members