Ali Beasley
Ali Beasley

Reputation: 77

CSS Table Layout Issue

I'm having a problem with the code below, specifically the line "table.ScanData, th, td" that is setting the borders for all the other tables on my page but NOT ScanData.

table.ScanData
{
 margin-left:5px;
 border-collapse:collapse;
 border: 1px solid black;
}
table.ScanData, th, td
{
    border: 1px solid black;
}
table.ScanData td
{
    padding:3px;
}

Upvotes: 1

Views: 92

Answers (3)

Susam Pal
Susam Pal

Reputation: 34204

Use this.

table.ScanData th, table.ScanData td
{
    border: 1px solid black;
}

Upvotes: 0

Michał Kuliński
Michał Kuliński

Reputation: 1976

Try that: .ScanData table, th, td ....

Example:

http://jsfiddle.net/MbdMW/

Upvotes: 0

heximal
heximal

Reputation: 10517

try

table.ScanData th, table.ScanData td

instead of

table.ScanData, th, td

Upvotes: 7

Related Questions