Question

I have a global reset rule:

* {
margin:0px;
padding:0px;
}

I also have a LOT of tables with pre-defined cellpadding values. However, the global reset rule is killing all the cellpadding values. What would be the best way to get the cellpadding back without having to create a specific css rule for each table? (There are a lot of tables.)

EDIT: to clarify, if I took out the padding:0px; rule then all the tables would look perfect. But, I still need the global reset for other stuff.

Was it helpful?

Solution

Your best bet is to use a reset sheet like Eric Meyer's, and cut-out tables from there.

What is odd is that inline formatting should be trumping global formatting.

OTHER TIPS

table
{
  padding: 3px;
}

and/or possibly

table tr
{
  padding: 3px;
}

and/or possibly td, th and all other table related elements.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top