javascript - html tags in opening drop-down menu -


In a basic div, there is a "menu div" as I have shown in the picture. By clicking "menu" and a function in javascript, another window opens, which includes menu items.

As it is presented, in the "Menu window", the parent is more than the witch margin. For the menu part, I have assumed two different tags. One when it is in parent and the other when it opens with menu items and with padding and margin settings in the CSS, I have put them in the exact same condition when the window opens, the supervisor Also does not recognize the displacement "menu".

Is there an easy way to do this? Can there be only one tag for the menu? Enter image details here

Yes there is a simple way to use 2 separate menu tags.

You will have 1 menu tag (with some tests for the menu) and put your menu item in your menu tag (but do not show them - display: any ). When the user clicks on the menu, change the display of your item ( display: block ) to block and make sure that your menu will show items outside its original size.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -