forgottofly forgottofly -3 years ago 88
CSS Question

Highlight value on hover

I'm trying to highlight text inside

.category-value
class on hover over
div
with class
month-hover
to apply
#197ABF
color. ie., "Jan" text should be of color
#197ABF
on hover over div.

I tried applying the below CSS,but not working(as its highlighting only on mouse hover over
Jan
or
Feb
).

.month-hover>.category-title:hover{
color:#197ABF;
}


Plunker link here

Answer Source

You forgot the dot (.) before your category-title class:

.month-hover > .category-title:hover {
    color: #197ABF;
} 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download