This is my HTML:
<table class='htmlCommentTable'>
<tr>
<td class='thirdtd'>
<img class='clickedFlame' src="image.png" />
</td>
<td class='secondtd'>
name <br /> first comment
</td>
</tr>
<tr>
<td class='thirdtd' style="padding-left:80px"> <!-- NOTE: I added a left padding to this single td -->
<img class='clickedFlame' src="image.png" />
</td>
<td class='secondtd'>
name <br /> second comment
</td>
</tr>
<tr>
<td class='thirdtd'>
<img class='clickedFlame' src="image.png" />
</td>
<td class='secondtd'>
name <br /> third comment
</td>
</tr>
</table>
and this is my CSS:
.htmlCommentTable td {
border-collapse: seperate;
vertical-align: top;
padding: 10px;
border: 1px solid black;
margin: 0;
}
.thirdtd {
width: 90px;
}
.secondtd {
width: 100%;
position: relative;
}
As you can see, all I did was add a left padding to a single td (the first td in the second row) but for some reason when I do this, it gives a left padding to the second td's of the first and third row as well. How come? I want it so that only the first td in the second row gets the left padding and the rest of the table remains the same.
Note: I tested this fir Chrome and IE 8 - IE 10.