homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

What am I doing wrong-seems simple
Can't get table border to look right in css

10+ Year Member

Msg#: 4090 posted 8:42 pm on Jul 11, 2004 (gmt 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.


Rambo Tribble

WebmasterWorld Senior Member 10+ Year Member

Msg#: 4090 posted 9:39 pm on Jul 11, 2004 (gmt 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.


10+ Year Member

Msg#: 4090 posted 9:56 pm on Jul 11, 2004 (gmt 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved