0
Need help with my code, pls anybody
4 Respostas
+ 2
I fixed it. The problem was with your CSS selectors. The tbody was unnecessary and it all needed to be written together.
I saved a working version as my own code here (though I'll delete it soon), with comments where you went wrong:
https://code.sololearn.com/W0P17vIBUDXb/#html
+ 1
tbody tr:nth-child(even) {
background-color: #f0f0f2;
}
0
Thanks, it really does work @Taija and @calvin
0
@Taija but why is the tbody selector unnecessary? I feel its used to defined which tr it should be acted upon?