Link to home
Start Free TrialLog in
Avatar of Starr Duskk
Starr DuskkFlag for United States of America

asked on

TD style override

I have two styles for my table tds:

.HomeMasterPageTable td
{
   padding: 0px !important;
}

td
{
    vertical-align: top;
    padding: 3px 3px 3px 3px !important;
}

Open in new window


The first is for a table on the master page which must not have any padding. It wraps the body content throughout the site. But the body content contains tables that must have the td padding as shown above.

However, when the tables inside the master page table are rendered, they also do not have padding.

How do I tell the system that only the table with the class name of "HomeMasterPageTable " should have no padding. But every other table needs to have the padding, even if they are tables inside of the HomeMasterPageTable  table?

thanks!
ASKER CERTIFIED SOLUTION
Avatar of Gary
Gary
Flag of Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial