Need help with my code, pls anybody | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
31st May 2017, 11:50 AM
Awojana Oluwafemi
Awojana Oluwafemi - avatar
4 Answers
+ 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
31st May 2017, 12:07 PM
Taija
Taija - avatar
+ 1
tbody tr:nth-child(even) { background-color: #f0f0f2; }
31st May 2017, 12:09 PM
Calviղ
Calviղ - avatar
0
Thanks, it really does work @Taija and @calvin
31st May 2017, 12:26 PM
Awojana Oluwafemi
Awojana Oluwafemi - avatar
0
@Taija but why is the tbody selector unnecessary? I feel its used to defined which tr it should be acted upon?
31st May 2017, 12:53 PM
Awojana Oluwafemi
Awojana Oluwafemi - avatar