I am currently working on a webpage that is utilizing a pre-existing stylesheet. This particular stylesheet includes the following style rules:
table {
border-collapse: collapse;
}
th, td {
padding: 0;
}
My challenge arises when I attempt to create a table with cell paddings greater than zero while staying within the constraints of the existing stylesheet:
<table cellpadding="10">
<tr>
<td padding="10">
Foo
</td>
...
...
</tr>
</table>
Unfortunately, all attempts to override the default stylesheet settings have failed resulting in no cell padding being applied.
What alternative approaches can I take to modify the stylesheet without resorting to using an entirely different one?