I have a dynamically generated table that shows different courses. This table is generated by PHP, and gives every row a button. However, for a multi-day course I only want one button, instead of three buttons.
I want to solve this through CSS because it is not possible to adjust in PHP (long story).
The HTML (folded) of the table is:
<table class="events-table">
<tbody>
<tr class="cursus"><a class="ButtonInschrijven" href="http://">Inschrijven</a></tr>
<tr class"meerdaagsecursus_sub2"><a class="ButtonInschrijven" href="http://">Inschrijven</a></tr>
<tr class"meerdaagsecursus_sub2"><a class="ButtonInschrijven" href="http://">Inschrijven</a></tr>
<tr class"meerdaagsecursus_sub2"><a class="ButtonInschrijven" href="http://">Inschrijven</a></tr>
<tr class="cursus"><a class="ButtonInschrijven" href="http://">Inschrijven</a></tr>
</tbody>
</table>
I tried the following in CSS attempt, but I can't figure it out:
.meerdaagsecursus_sub2:nth-child(1n+2) .ButtonInschrijven {
visibility: hidden;
}
