I need CSS help

Cobaltasaurus
Wed, 22 Jul 2020 10:11:56 +0000

Hello! I apologize if this is the wrong place to put this on. I’m having trouble with my tables. The generic tables you can make with markdown don’t have any bg color for the cells, only the header. When I go in and set a bg color via the CSS, it then makes it so that the striped-tables of things like the FS3 abilities page no longer are striped. And I can’t for the life of me figure out how to make it work.

The following is the CSS I have set.

/* Tables */

.table > thead > tr > th {
    border-bottom: 2px solid #1f1f1f;
}

.table > tbody > tr > th {
    border-top: 1px solid #1f1f1f;
    border-left: 1px solid #1f1f1f;
}

.table-striped {
    background: #404040;
}

.table-striped>tbody>tr {
    background-color: #404040;
}

.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #353535;
}

.table>tbody>tr>td {
    border-top: 1px solid #292929;
}

th {
    background-color: #2b2b2b;
    color: #d8d8d8;
    font-size: 16px;
}

td {
    border-bottom: 1px solid #292929;
    background-color: #353535;

}

.table>tr:nth-of-type(even) {
    background-color: #404040