L
L
Lora Faust2016-10-08 00:26:27
css
Lora Faust, 2016-10-08 00:26:27

How can I make it so that when I hover over an image, a drop-down menu opens? On pure CSS and HTML?

Hello. I am new to programming. I wanted to know the opinion of professionals. I want a drop down menu to open when hovering over an image. How can this be done? This is not a submenu, but the main one.
Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Verkh, 2016-10-08
@lofaust

img + ul {display:none}
img:hover + ul {display:block}

<img src="">
<ul>
<li>меню</li>
<li>меню</li>
</ul>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question