I need help editing CSS

SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
It's just been the past couple of days I've taught myself how to use Cascading Style Sheets. In college we spent about 10 minutes on it, and never went back to it. I'm renovating a site I webmaster (www.hawgbuster.com) so it would be faster and more intuitive. Before I've created a default page, and then used that page to create the style I want for the rest. But CSS is faster, more versatile.

Here is the problem I'm having...

I want to have the TABLE tag not have borders by default, without any padding. I finally figured out that I need to set the border to 0 for the tag TD to get the inside border not to show up, but now I can't get the table and cell padding to be 0 - my tables still end up with some type of padding. I can't figure out what else I need to accomplish this.

:confused:
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
in the css file do

table { border:0px ; and paddingthing }
tr { same thing }
td { same thing }


and you might want to remove the margain to
 

SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
I never considered that I would need to do that for the TR tag... so I tried it. Didn't work. :(

Here is my CSS file currently:

table { padding: 0 ;
border: 0 ;
margin: 0 ;
}

td { padding: 0 ;
border: 0 ;
margin: 0 ;
}

tr { padding: 0 ;
border: 0 ;
margin: 0 ;
}
 

SagaLore

Elite Member
Dec 18, 2001
24,036
21
81
nope

hmm

Maybe it's something I can't adjust in the table, I might have to do it for the entire body?

Also the standard says if using 0, then the two letter identifier doesn't need to be used because it's universal, but I tried it anyway and that still didn't do the trick

oh well
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
hmm.. then I'm not sure, try setting the border to 1px solid black and see where the spacing is.