I know it can be done in JavaScript, however I am looking for solution in CSS.
JavaScript
CSS
I have three divs.
Instead of + you want to use ~ combinator for hide element because + selects only next-sibling
+
~
hide
#show { display: none } #main:hover + #show { display: block } #main:hover ~ #hide { display: none }
Hover me Show me on hover Hide me on hover