when I hover cursor on link, how change div text font color?
Is impossible then do with css?
my try:
<style type="text/css">
a:hover .text {
color:#FF00FF;
}
</style>
</head>
<body>
<a href = "">link</a>
<div class = "text">TEXT TEXT</div>
</body>
The selector
a:hover .textmeans: select any element with the class “text” that is a descendant of anAelement that has the hover state, like this:But according to your markup you rather need the selector
a:hover + .text. This means: select any element with the class “text” that is immediately preceded by anAelement that has the hover state.