开发者

Cell Padding Using CSS on an HTML Table

I need to pad just one cell in my table. I gave the td element a class and de开发者_如何学JAVAfined 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.


I changed the css to

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

Now it works.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜