I can’t change text color of table elements using a class name after I have already set a text color using tag name td. Below is the piece of code I’m having problem with.
td{
height: 50px;
font-size: 20px;
color: #f7b76d;
}
.tr-out-of-stock:hover{
color: white;
background-color: #ffcccc;
}
.tr-in-stock:hover{
color: black;
background-color: #ccffe6;
}