I am trying to add borders around certain rows of a table that change color when the mouse enters a row. However, I do not see the border at all, unless border-collapse:collapse; , but I need to avoid crash-crash, because in some cases the border is visible on the left, right and bottom, but not on top (probably because I cannot have a / margin when using border collapse).
Is there any way to achieve this?
<table style="border-collapse:collapse;"> <tr style="border:1px solid black"> <td>Cell_1</td> <td>Cell_2</td> </tr> </table>
source share