Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question