I want to have after elements only if there are other elements after it. Here is my code:
<table id='table_1'>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
</table>
Is it possible: after A and B, but not C?
My css
#table_1 td:after{
content: "";
background: black;
border: 1px solid black;
position: relative;
margin-left: 10px;
}
source
share