CSS hover not working on hidden elements?

L84 picture L84 · Jul 11, 2011 · Viewed 10.1k times · Source

I am not sure what is going on here but the rollover is not working correctly and I can't seem to figure it out.

I am using very basic and simple css:

open{visibility:hidden;}
open:hover{visibility:visible;}

http://www.ubhape2.com/messages/files/chameleon/ is the page i am working on

Please forgive the god awful code. I am using it as a simple and quick method. Just need the roll over to work and I am good.

Answer

balping picture balping · Aug 3, 2014

You can use the opacity property:

.open{opacity:0;}
.open:hover{opacity:1;}