cometta
cometta

Reputation: 35689

pure css hover show another element possible?

<a href="">
  text here always show
 <div  style="display:none;">
   hide text here
 </div>
</a>


a:hover{

//when hover show 'hide text here' ; when not hover, hide it again 
}

possible to use pure css to do this effect?

Upvotes: 25

Views: 20008

Answers (1)

robertc
robertc

Reputation: 75707

a div {
    display: none;
}

a:hover div {
    display: block;
}

Upvotes: 49

Related Questions