+ 1
How can I do this?
https://code.sololearn.com/WElqmRPGWrt1/?ref=app I want to make the cell change color when touched. How can I do this?
6 Antworten
+ 3
td:hover {
background-color:yourcolor;
}
+ 2
Thanks
+ 1
It doesn't work!
0
The closest you'll get in css is:
td :active {
//css
}
If you want it to stay like that you'll need to look at JavaScript's onClick function
0
It only works on PC, when you click on it.
You'll maybe need to look at Javascript.
I'm unsure on how one would do this, maybe someone else has an answer