The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Could you help me with this wierd table Reply To: Could you help me with this wierd table


Actually there were 10 tasks to do, here you can see a”final prodcut” ( :)
Table was only one task, which represents 10% of assignment, i’m still happy with 90%.

I was playing around with, code below and trying to hit last three rows for like an hour or two and coulnd’t figure it out :c
.ocene tr:nth-last-child(2),.ocene tr:nth-last-child(1),.ocene tr:nth-last-child(3) {
background: green;

i managed to target the whole row with:
.ocene tr:nth-last-child(2){
background: green;

but when i change number 2 to 1 or 3 it doesn’t affect the whole row but only cuple of tds.