views:

28

answers:

1

I need to pad just one cell in my table. I gave the td element a class and defined the class in my css file like this

.itemQuantity
{
    padding-right:30px;
    text-align:right;
    background-color: #EEE;
}

Padding-right does not seem to be doing anything.

+1  A: 

I changed the css to

td.itemQuantity
{
    padding-right:30px;
    text-align:right;
    background-color: #EEE;
}

Now it works.

Arizona1911
You probably need to read up on selector specificity: http://www.w3.org/TR/CSS2/cascade.html#specificity
RoToRa