Reputation: 1
I have a css file and one of the classes is as follows:
.thumnail {
padding-left:100px;
padding-top:20px;
}
When i refer to the class thumnail for a table <tr>
in Internet Explorer it works and in Firefox it does not. Can any one help me out please?
Upvotes: 0
Views: 328
Reputation: 944530
From the specification for padding:
Applies to: all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column
A <tr>
element is, by default, display: table-row
so padding
should not have any effect on it.
If you want to adjust the space between <td>
and <th>
elements, you need to use the border-spacing
property (and apply it to the <table>
element).
Upvotes: 3