开发者

Padding inside tables doesn't work in Chrome?

开发者 https://www.devze.com 2023-03-15 08:08 出处:网络
I created a table and I assigned to each tag <td> the class \"product_page\": <td class=\"product_page\">

I created a table and I assigned to each tag <td> the class "product_page": <td class="product_page">

The TD is referred to the following CSS lines:

.post td.product_page {
width:33%;
padding:20px 15px 5px 15px;
vertical-align:top;
border:1px solid #666;
}

Now, the tag "padding" doesn't have any effect in Chrome. The text contained in the <td></td>has not margin from the table border. All the other instructions contained in the box above, are working perfectly.

What's wrong please ? I thank you very much in adv开发者_如何学Goance for your help.


I created this jsfiddle and it seems to be working correctly. I am using chrome.


Make sure td.product_page is inside something marked .post.

Also, try using margins.

0

精彩评论

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

关注公众号