Skip to content
Advertisement

Element not appearing on hover

I made a basic website header and the respective menus should appear when you hover over the options but it doesn’t work. When hovering over the options “Home” “Insert” “design” “table” “info” etc the respective menus should appear. I have made menus and did dispaly:none on them to make them disappear and put display:block on the options to make the menus appear when you hover over them. What is the mistake pls help.

JavaScript
JavaScript

Advertisement

Answer

Update

In your case with your HTML structure you cant archive this with pur CSS. You have to use Javascript. Take a look of this small working example. I refactor your code only a little bit. But you will see how it works and you can adjusting for your wishes.

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement