I have a table and I am displaying the overly on tr
but it's not working on chrome but it's working on firefox.
How to give the background overly on tr
. I tried below code but I am getting the issue on chrome.
I have both browsers updated.
In Firefox I am getting the output
In chrome, I am getting the output
<html>
<head>
<style>
tr.sec_activities {
position: relative;
}
tr.sec_activities:after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
background-color: rgba(0, 0, 0, 0.6);
}
</style>
</head>
<body>
<table>
<thead>
<tr>
<th>adasd</th>
<th>asdasd</th>
<th>asdasd</th>
</tr>
</thead>
<tbody>
<tr class="sec_activities">
<td>sadsadasdad</td>
<td>dsfsfs</td>
<td>ajsdkaskdjajd</td>
<td>adklasdlja</td>
</tr>
<tr class="sec_activities">
<td>sadsadasdad</td>
<td>dsfsfs</td>
<td>ajsdkaskdjajd</td>
<td>adklasdlja</td>
</tr>
<tr class="sec_activities">
<td>sadsadasdad</td>
<td>dsfsfs</td>
<td>ajsdkaskdjajd</td>
<td>adklasdlja</td>
</tr>
</tbody>
</table>
</body>
</html>
Would you help me out in this?