I am facing an issue with two nested tables, where the parent table is styled using
class="table table-bordered table-hover"
from Bootstrap. However, the nested table inherits all the styles from the parent, causing conflicts as I need the nested table to have a different appearance without any Bootstrap styling.
Is there a quick and simple way to prevent the nested table from inheriting the CSS properties of the parent table?
(The following code snippet does not directly represent my situation but can serve as a helpful example for us to troubleshoot a solution.)
Thank you!
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">
<table class="table table-bordered table-hover">
<tr>
<td>Row 1</td>
</tr>
<tr>
<td>Row 2</td>
</tr>
<tr>
<td>
<table>
<tr>
<td>Nested 1a</td>
<td>Nested 2a</td>
<td>Nested 3a</td>
<tr>
<tr>
<td>Nested 1b</td>
<td>Nested 2b</td>
<td>Nested 3b</td>
<tr>
</table>
</td>
</tr>
<tr>
<td>Row 3</td>
</tr>
</table>