I'm having trouble applying border-radius to the column group in an HTML table. Is there a solution for this issue that allows me to maintain accessibility for the table view?
Is there a way to achieve border-radius on the column group while ensuring accessibility is still intact?
table{
border-collapse: collapse;
border-spacing: 30px;
}
td {
padding: 5px;
}
colgroup > col.selected{
border: 1.5px solid #2698d6;
box-shadow: 0px 4px 31px rgba(96, 96, 96, 0.1);
border-radius: 8px;
}
<table>
<colgroup>
<col span="1" class="selected" />
</colgroup>
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
<td>Column 4</td>
</tr>
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
<td>Column 4</td>
</tr>
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
<td>Column 4</td>
</tr>
<tr>
<td>Column 1</td>
<td>Column 2</td>
<td>Column 3</td>
<td>Column 4</td>
</tr>
</table>