Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pure css hover show another element possible?

Tags:

<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?

like image 388
cometta Avatar asked Sep 07 '10 13:09

cometta


People also ask

How do you hover with one element and affect another?

if we define 2 HTML elements where we want to hover over one element & at the same moment want to change the style of another element then both the elements should be directly related as either parent-child or sibling, which indicates either one element must be inside another element or both elements should be within ...

Can we use hover with Div?

To display div element using CSS on hover a tag: First, set the div element invisible i.e display:none;. By using the adjacent sibling selector and hover on a tag to display the div element.


1 Answers

a div {     display: none; }  a:hover div {     display: block; } 
like image 80
robertc Avatar answered Dec 28 '22 05:12

robertc