Skip to content
Advertisement

How to CSS visibility works

I put my whole code in https://jsfiddle.net/xmbohx/kuaen74m/5/

Trying to toggle the profile picture to reveal the menu in it but cannot.

the html:

JavaScript

the action class is :

JavaScript

Pls advise what missing in the code

Advertisement

Answer

Your problem is coming from the fact you have a css property overflow:hidden on the node with class name action

try replacing in your html with the following :

JavaScript

and then modify this part of the css :

JavaScript

I nested the image in a new div, moved the overflow hidden property to this div, then it works.

fiddle

Advertisement