Table border problem

In my django project I have a table and I have this issue where there is a angled corner when I have done border-radius (I know its very messy code but just trying to get some functionality out of this) HTML:
<div class="comments-container">
<table>
<thead>
<tr>
<th>{% trans "Count" %}</th>
<th>{% trans "Message" %}</th>
<th>{% trans "Album" %}</th>
</tr>
</thead>
<tbody>
{% for comment in user.comments.all %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ comment.text }}</td>
<td>{{ comment.album.title }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="comments-container">
<table>
<thead>
<tr>
<th>{% trans "Count" %}</th>
<th>{% trans "Message" %}</th>
<th>{% trans "Album" %}</th>
</tr>
</thead>
<tbody>
{% for comment in user.comments.all %}
<tr>
<td>{{ forloop.counter }}</td>
<td>{{ comment.text }}</td>
<td>{{ comment.album.title }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
SCSS:
table {
background: rgba(255, 255, 255, 0.2);
border-radius: 1rem;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
padding: 2rem;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
width: 80%;
margin: 0 auto;
}

th, td {
padding: 1rem;
text-align: center;
}


thead tr {
background: rgba(255, 255, 255, 0.1);
}

tbody tr:nth-child(odd) {
background: rgba(255, 255, 255, 0.4);
}

td{
transition: .15s;
&:hover {
background: rgba(255, 255, 255, 0.5);
transition: .15s;
color: darkgreen;
font-weight: bold;
}
}
table {
background: rgba(255, 255, 255, 0.2);
border-radius: 1rem;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
padding: 2rem;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
width: 80%;
margin: 0 auto;
}

th, td {
padding: 1rem;
text-align: center;
}


thead tr {
background: rgba(255, 255, 255, 0.1);
}

tbody tr:nth-child(odd) {
background: rgba(255, 255, 255, 0.4);
}

td{
transition: .15s;
&:hover {
background: rgba(255, 255, 255, 0.5);
transition: .15s;
color: darkgreen;
font-weight: bold;
}
}
No description
2 Replies
Tok124 (CSS Nerd)
you need overflow:hidden; on the table tag in css
Autistic5YrOld
Autistic5YrOldOP13mo ago
tysm
Want results from more Discord servers?
Add your server