1
I would like to know how I can move my menu in an image I made. I wanted to put the menu on the left side for example. Here is my menu: https://gyazo.com/3cc836a7cb1b825800abe4f8b0b309e7
Here is my code:
<!-- Icon -->
<div id="user">
<img id="icon" align="left" style="position:absolute; top:2%; right:7.3%; " width="100px" src="https://cdn4.iconfinder.com/data/icons/small-n-flat/24/user-alt-128.png" >
<div id="nav_menu" style="position:absolute; top:2%; right:7.3%; ">
<ul>
<li id="l1"> -- </li>
<li> -- </li>
<li> -- </li>
<li> -- </li>
</ul>
</div>
JS
$("#icon").mouseover(function() {
$('#nav_menu').slideDown();
});
$("#icon").mouseleave(function(){
$('#nav_menu').slideUp();
});
Thanks for the help, but the menu is still on top of the image, and it was not quite what I want to do, I wanted to move to the left, so that still to see the icon
– Paulo
Where do you want the menu to be and where do you want the image to be ? Explain it better in your question. Otherwise it is difficult for us to help you.
– Diego Souza
I’d like it to be possible to put the menu on the right or left side of the image, not on top of the image, you know? I tried the align but it didn’t take effect
– Paulo
I edited the code, see if it’s what you need.
– Diego Souza
That’s exactly it !!! Thanks !
– Paulo
If it helped you, please mark the answer as sure. @Paulo
– Diego Souza