开发者

Cell Padding Using CSS on an HTML Table

开发者 https://www.devze.com 2023-01-07 16:07 出处:网络
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

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

精彩评论

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

关注公众号