I am in search of a way to style my datasheets using tr:nth-child(odd). Below is the code snippet I am currently using:
My main concern lies in adjusting the width. I aim for it to occupy a space that measures 200px by 400px
The depth does not pose an issue since each row defines its depth, but the length is crucial. The current code only aligns it at the center and I cannot figure out how to expand the fields. I'm aware of missing something here, any assistance would be highly appreciated.
tr:nth-child(odd) {
background: #4D4D4D}
<div class="black">
<table class="test2">
<tr>
<td>Text</td>
<td>Text2</td>
<td>Text3</td>
<td>Text4</td>
</tr>
<tr>
<td>5</td>
<td>6</td>
<td>7</td>
<td>8</td>
</tr>
<tr>
<td>9</td>
<td>10</td>
<td>11</td>
<td>13</td>
</tr>
</table>
</div>