CSS specific table

Just apply the .beta class selector to the entire table and change your CSS code to apply a rule only to td decedents of .beta like this:

<table class="beta">
    <tr>
        <td>...</td>
        <td>...</td>
    </tr>
</table>
.beta td {
    border-style:solid;
    border-top:thick double #ff0000;
}

If you need to apply the rule to multiple elements within .beta simply add an additional selector like this:

.beta td, 
.beta th {
    border-style:solid;
    border-top:thick double #ff0000;
}

Qapla’!

Leave a Comment