Div and text problem


#1


ok...see ...i hav a div with class content..
<div class="content" align="center">
<h2 class="incon">Kinematics</h2>

</div>
and a h2 tag inside it.

I am applying this css code to it..

.content:hover{
background-color:#555555;
color:white;
}
what its supposed to do is...whenever i hover over the div....the div background color should change and the text innside h2 should turn white....
now...its changing the background color but text is not turning white...
please suggest ..how to do it


#2

if you want to turn the text white, you would have to specify that it is the h2:

.content:hover h2 {
  color: white;
}

now if you hover content, the h2 should become white


#3

thnx for the quick reply and for making this great website...codeacademy