etard
12-12-2008, 11:10 AM
All of my styles are defined in an external css sheet. Why would this not work to properly remove cell pad and cells pacing?
.maintd {width: 900px;margin-right: auto;margin-left: auto;border-collapse:collapse;padding:0;}
and then, to my table, apply class="maintd"
It does not remove the cell padding or spacing. I do not want to put cellpadding="0" cellspacing="0" in my actual code, want to control it via the CSS. Since I will have tables that do need cell pad and spacing, I do not want to make an overall style that says no cell pad or cell spacing for all tables. I just want to make different styles for different tables needs, but I cannot seem to remove spacing or padding with this above option - and front what I gather, it should.
what am I missing?
.maintd {width: 900px;margin-right: auto;margin-left: auto;border-collapse:collapse;padding:0;}
and then, to my table, apply class="maintd"
It does not remove the cell padding or spacing. I do not want to put cellpadding="0" cellspacing="0" in my actual code, want to control it via the CSS. Since I will have tables that do need cell pad and spacing, I do not want to make an overall style that says no cell pad or cell spacing for all tables. I just want to make different styles for different tables needs, but I cannot seem to remove spacing or padding with this above option - and front what I gather, it should.
what am I missing?