Reputation: 1
How can I remove for example margin from the last content__graph-item in this situatation?
<table>
<tr>
<td>
<div class="content__graph-item"></div>
</td>
<td>
<div class="content__graph-item"></div>
</td>
</tr>
</table>
Upvotes: 0
Views: 249
Reputation: 1049
table tr > td:last-child .content__graph-item{
margin:0px;
}
In this case, it is recommended to give a class name to the table.
Upvotes: 0
Reputation: 36512
It is the td that is the last child so try
td:last-child .content__graph-item
Upvotes: 1