Toggle Dropdown Menu, Help Please

I have this CSS below, and it works like a charm for what it's supposed to do, but I noticed that the dropdown menu only comes down when the mouse hovers over the button. I want it so that it only drops down when clicked on, allowing the user to toggle the menu off and on. The menu and dropdown menu I'm talking about only shows up on my phone layout of the site. How do I make this dropdown menu drop on toggle instead of mouse hover.
.phonemenuwrap {
    width:100%;
    box-shadow:0px 1px 3px rgba(0,0,0,0.2);
    background:#3e3436;
.phonemenu {
    width:100%;
    margin:0px auto;
    background:#89181A;
.phonemenu li {
    margin:0px;
    width:100%;
    list-style:none;
    font-family:Arial, Helvetica, sans-serif;
    background:#2e2728;
.phonemenu a {
    transition:all linear 0.15s;
    color:#919191;
.phonemenu li:hover > a, .phonemenu .current-item > a {
    text-decoration:none;
    color:#be5b70;
.phonemenu .arrow {
    font-size:11px;
    line-height:0%;
/*----- Top Level -----*/
.phonemenu > ul > li {
    float:left;
    display:inline-block;
    position:relative;
    font-size:19px;
.phonemenu > ul > li > a {
    display:inline-block;
    text-shadow:0px 1px 0px rgba(0,0,0,0.4);
.phonemenu > ul > li:hover > a, .menu > ul > .current-item > a {
    width:100%;
    background:#2e2728;
/*----- Bottom Level -----*/
.phonemenu li:hover .sub-menu {
    z-index:1;
    opacity:1;
.sub-menu {
    width:100%;
    padding:5px 0px;
    position:absolute;
    top:100%;
    left:0px;
    z-index:-1;
    opacity:0;
    transition:opacity linear 0.15s;
    box-shadow:0px 2px 3px rgba(0,0,0,0.2);
    background:#2e2728;
.sub-menu li {
    width:100%;
    display:block;
    font-size:16px;
.sub-menu li a {
    padding:10px 30px;
    display:block;
.sub-menu li a:hover, .sub-menu .current-item a {
    background:#3e3436;
My site: Showcase Design & Build: Pinehurst, Fayetteville and Sanford Custom Home Builder

Hyde1216 wrote:
Still doesn't seem to be working, even after doing all of the above. The problem is still that the menu either stays dropped down, or it never gets dropped down.
Ok lets go through this again. I made an error in my orignal code and I now have had a better chance to unravel your css.
1) Comment out the css selector as shown below using /* */
.phonemenu li:hover .sub-menu {
z-index:1;
opacity:1;
2) Comment out the 'opacity: 0;' as shown below using /* */
.sub-menu {
    width:100%;
    padding:5px 0px;
    position:absolute;
    top:100%;
    left:0px;
    z-index:-1;
    /* opacity:0; */
    transition:opacity linear 0.15s;
    box-shadow:0px 2px 3px rgba(0,0,0,0.2);
    background:#2e2728;
3) Add the jQuery framework library and script - copy the below code and paste it into your pages code directly before your closing </head> tag. (NOTE: I have added - $('.sub-menu').hide(); - to hide the submenu when the page loads).
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script>
$(document).ready(function() {
$('.sub-menu').hide();
$('.openMobileMenu').click(function() {
$('.sub-menu').toggle();
</script>
4) Add class="openMobileMenu" to the a tag which is wrapping your 'dropdown.png' image, as shown below.
<a href="#" class="openMobileMenu"><img src="images/dropdown.png" width="36" height="27" alt="Dropdown"><span class="arrow">&#9660;</span></a>
Thats it - your phone menu should now toggle when the hamburger icon is clicked.
EDITED: ALSO don't use a minus z-index for the 'sub-menu' - use a higher number like 10, as shown:
.sub-menu {
    width:100%;
    padding:5px 0px;
    position:absolute;
    top:100%;
    left:0px;
    z-index: 10;
    /* opacity:0; */
    transition:opacity linear 0.15s;
    box-shadow:0px 2px 3px rgba(0,0,0,0.2);
    background:#2e2728;

Similar Messages

  • IE 7 - CSS Issues with Spry dropdown Menu *HELP*

    I am using a spry horizontal dropdown menu generated in DW. The menus look consistant in all other browsers except ie7 -  When the drop down menu occurs they all appear to the right and not directly under its menu item.. Looked around in the Css and i cant seem to find the right rule to make the change in ie7 only... was planning on using a css conditional statement to shift them left.. But im not having any luck.. HELP!
    Thanks so much in advance!

    Sorry.. Here is the link.. Thanks so much for your willingness to help!
    http://soldesign.us/_working/WEBSITE_BoulderPlasticSurgery/index.html

  • Dropdown menu help

    Hello,
    I am updating my website, and created a dropdown menu using fireworks. (later I installed it into dreamweaver, but I'm not sure that that makes any difference) The problem I am having is that each item in the dropdown menu opens in a new tab when I click it, and I want it to stay in the same window. My site is here:  www.nicolemn.com
    Any suggestions on how I can fix this?
    Thank you.

    That code is awful! How in the world do you expect to maintain this code with names like these? Using Fireworks code for a live site (rather than building in Dreamweaver, for example) is just asking for trouble.
    Here's your menu code:
    <a id="MMMenu0120182959_0_Item_0" class="MMMIFVStyleMMMenu0120182959_0" onmouseover="MM_menuOverMenuItem('MMMenu0120182959_0');" target="Home" href="http://www.nicolemn.com/home.html">  Home </a>
    <a id="MMMenu0120182959_0_Item_1" class="MMMIVStyleMMMenu0120182959_0" onmouseover="MM_menuOverMenuItem('MMMenu0120182959_0','1');" target="Photography" href="http://www.nicolemn.com/photography.html"></a>
    <a id="MMMenu0120182959_0_Item_2" class="MMMIVStyleMMMenu0120182959_0" onmouseover="MM_menuOverMenuItem('MMMenu0120182959_0');" target="Design" href="http://www.nicolemn.com/design.html"> Design </a>
    <a id="MMMenu0120182959_0_Item_3" class="MMMIVStyleMMMenu0120182959_0" onmouseover="MM_menuOverMenuItem('MMMenu0120182959_0');" target="About" href="http://www.nicolemn.com/about.html"> About </a>
    <a id="MMMenu0120182959_0_Item_4" class="MMMIVStyleMMMenu0120182959_0" onmouseover="MM_menuOverMenuItem('MMMenu0120182959_0');" target="Contact" href="http://www.nicolemn.com/contact.html"> Contact </a>
    <a id="MMMenu0120182959_0_Item_5" class="MMMIVStyleMMMenu0120182959_0" onmouseover="MM_menuOverMenuItem('MMMenu0120182959_0');" target="Link" href="http://www.nicolemn.com/links.html"> Links </a>
    Answer to your question:
    Your trouble is with these bits in the code above:
    target="Home"
    target="Photography"
    target="Design"
    target="About"
    target="Contact"
    target="Link"
    The target attribute has to do with what window the link opens in. You have each link open in a new named window (not a standard thing to do). See this description: http://www.developingwebs.net/html/targetattribute.php You need to remove the target attributes in the section of code I quoted and anywhere else you're using them inappropriately.
    Optional stuff:
    You might also consider whether or not each link needs its own id and if a more memorable class name ("mainnav" perhaps?) might be better than "MMMIFVStyleMMMenu0120182959_0."
    I'm not a fan of your menu only showing up if the user mouses over your logo. What if the user never does that? You're pinning your hopes and expectations on a random user behavior. That's poor usability. Navigation should be clear, not hidden. Also, users dislike splash pages, as it's extra time needed to load a page that has no content on it. It's a barrier to content and the Web is all about access to content.

  • I have Firefox 3.6.12 and am working on a Macbook Pro. I have organized all my bookmarks into folders, but there is still a long list of websites listed on the Address Bar BookMark dropdown menu. Please help!

    (Note: I have deleted all Cached items on HD and User area.)

    Follow the steps,
    For Windows user,
    1. Goto Bookmark backup module in firefox window.
    2. Then select Documents and Settings Folder
    3. Choose user account folder Ex: User
    4. Then goto "Application Data" folder
    5. Then choose "Mozilla"
    6. Goto "Firefox"
    7. Then goto "Profiles"
    8. Choose "jj8doebi.default"
    9. Then goto "bookmarkbackups"
    10. Select the .JSON file that you want to restore the backup
    Note that in order to visible the "Application Data" folder, you have to un-select "hide protected operating system files" option in Folder option.

  • N80 - Rename gallery folder in menu, help please :...

    Hello, by mistake i've changed the name of the gallery folder on the menu, and now when i try to change the name back to gallery, the option for changing the name isn't there!!!! I really don't understand what have happened...
    Can you help me?
    Thanks in advance and sorry for my bad english...

    Let's see if i can explain i've changed the name of the folder (in the menu)(it might be an application but it appears as a folder...) that keeps the photos, and the music, that was called gallery, and this happened (i don't know how!!) when i was making a new folder to put some programs that i've installed... Can you help me? If you're not understanding tell me please, i'll try some other way to explain...
    Thanks in advance and sorry for my bad english...

  • Iweb - Grayed out File menu - Help please!

    Hi, I am traveling away from home on a 3 week trip. I started up iweb on the plane yesterday and it wouldn't let me start a new page, or add anything. It is all grayed out. Is there something I am doing wrong?
    Problem is I don't have my ilife disk if I need to reload the software. Any way to fix this problem with out reloading? Anywhere I can get it online?
    thanks,
    Jess
    PowerBook G4   Mac OS X (10.4.8)   ilife '06 purchased in August

    Hi jessica,
    This could be a problem of not having the iweb 1.1.1 update.
    Which do you have?
    Also if you have the latest 1.1.2 but didn't get the 1.1.1.....welll go back and get 1.1.1
    See if this helps or is even an issue w/ your setup.
    Good luck
    Please report back
    jabberwock

  • Dw6 css dropdown menu help

    wanting to create a drop down menu using css.  i have created this using <ul> and <li> tags, but for some reason it doesn't look right. My html seems to be correct and I have double checked the css and can't seem to find what i did wrong. I have chosen the tags within a tag to be hidden, the text is hidden but the boxes are still shown.  can someone help out a rookie and see what i screwed up?
    url is vacationcribs.com
    thx.\

    Fix the ending list tag (</li>) and come back here if it is still no good.
    This list should help.

  • Flyout mobile menu help, please

    Hi,
    I am trying to figure out how to make a flyout menu that is similar to the way the Gmail iPhone and Android app works.  It is very simple: there is the typical mobile menu icon at the top.  When that icon is tapped, the current page slides right about 75% of the way, revealing a menu below.  The menu scrolls/swipes up and down to show more choices than one screen can display.  When a menu choice is tapped, the page that slid away to the right slides back into position displaying the newly selected page.  There are no sub-menus, just one long list of menu items.
    I am attaching an image to show this.
    I sure would be grateful for help with how to do this.  I have searched and viewed some tutorials, but can't quite get it.  I would be happy to buy a widget that does this.
    Thank you.
    John

    You can try this :
    http://musewidgets.com/collections/all/products/pop-menu
    http://musewidgets.com/collections/all/products/mobile-menu
    Thanks,
    Sanjit

  • IPhone menu help please

    Hi all
    I keep finding that my iPhone will randomly move all my apps and stuff on my menu screens.
    The four icos you get on the home page at the bottom keep changing also. Is there a way I can put what I want on what page I want at all?.

    This has happened to me a few times. I believe it was caused when I put the iPhone in my pocket with the screen still active and then inadvertently (while reaching into the pocket) pressing an icon and putting them in the "rearrange" mode. Now I always make sure the screen is not active (blank) before storing and it hasn't happened again.

  • How do I remove the "Dock" option from the Apple Dropdown Menu

    I work for a school district where I am continuosly having to go back into Mac labs and reverting the settings on the dock back to normal.  Students are changing the size, position and content of the dock, as well as hiding the dock.  These computers are used by students k-6 and the younger children are getting confused when they com in and they cannot find the dock or its not where it is supposed to be.  I have been able to lock the sizing, position and content of the dock but am not finding a way to elimante the hiding of the dock.  Preferably I would like to remove the "dock option from the Apple dropdown menu.  Please help!!!!

    This question was asked quite a while ago and the suggestion was to use Server Admin Tools, which I know nothing about. You'll have to look into that. If these Macs are running off a server, then this might work for you. I'm seeing that Server Admin Tools from Apple is still current.
    https://discussions.apple.com/thread/287704?start=0&tstart=0

  • On Firefox, I select one of my usual sites on the URL dropdown menu but the page does not load. Please help!

    I click on the Firefox icon on the bottom of my toolbar screen. I go to the URL dropdown menu for my usual sites; I select one but the page will not load and the URL field is blank. It is a hassle to press the up and down arrows to select the site. Please help!

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • When i click on 'Show all in Finder' after searching for anything on spotlight, NOTHING happens! No Finder window opens up and the spotlight dropdown menu just shuts! Please help!

    When i click on 'Show all in Finder' after searching for anything on spotlight, NOTHING happens! NO Finder window opens up and the spotlight dropdown menu just shuts! Please help!

    I'm having the same problem in other places as well, for example when i downloaded Easyfind right now, clicking the small magnifying glass button on the right of the file name (shown below) would usually open up finder highlighting the file, but now nothing happens when i click on that button!
    Is there a solution for this, as this was a very useful feature which i used ALL the time?

  • Dynamic Results from Dropdown Menu PLEASE HELP!!!

    Hi. Here's an example of what I'm trying to accomplish. (the Order Estimator section) http://www.modernpostcard.com/products_services/pricing/ Are there any good resources, tutorials, etc. anyone could point me towards on this entire process? I'm just starting out so I'm not really sure what I need to search for.

    Hi Marc
    Option for quantity wouldn't be any problem. ^^
    Okey here you go, first make a "Dropdown-Menue"
    Add the options you wanna give with the green button.
    Then go to bind/binding; click the checkbox there.
    Now get a decimal field in your form. (Name probably "Decimalfield1")
    Click the dropdownlist. There should be some kind of table where you can enter a script. First choose "Exit" and "JavaScript".
    Then you should write in there something like
    if (this.rawValue == "1")
    {decimalfield1.rawValue = "3,00"}
    if (this.rawValue == "2")
    {decimalfield1.rawValue = "4,00"}
    Be sure to use the right names ;D
    Do that with all your boxes.
    The last box with the sum:
    Get in there, choose "Calculate" (FORMCALC)
    Write in decimalfield1 + decimalfield2 + (and so on)
    To make the dollar sign and so show up you've got to give a pattern in each field :)
    Hope that helped :)
    Lisa

  • Need help on how to create dropdown menu in dreamweaver 9

    Hello Forum Members
    I am working on dreamweaver , making my website by using dreamweaver 9 .
    My problem is, i want to create a dropdown menu but when i move my cursor on any item then the drop down links appears on the same item itself and that item diappears.
    For Example my menu is like --- item1 item 2 item 3 item4 item5
    item2.1 Item3.1 item4.1
    item2.2 item3.2 item4.2
    now when i move my cursor on any of these menu headings (like item 2, item 3, item 4) which has drop down links the main menu item disappears and the drop down links (item 2.1, item2.2 like wise) reflects on the place of that (item2) menu item.
    Please help me with this and not with the scirpt that would be the last option because i do not have any knowledge of html. Please tell me the feature in dreamweaver 9 from where i can correct it.
    Thanks In Advance
    Sean

    Please Help

  • Help needed for as3 dropdown menu and html

    First of all hello!  I have to create a html website for a company. The design i've made is in photoshop ....and i have to create a dropdown menu. The first question is : Can i create the dropdown menu in flash without having to use html frames? Can i link one of the buttons of the menu in a html page so that it loads in the same browser window another html page (if so .... with what function?)?  Please ... i need to know ... because i simply prefer to implement it in flash rather then html. And the second big question is : Can the stage in flash be transparent? Because if i make the menu in it, it will be impossible to match any dimensions of the stage .... and i would like to embed it into a html page...if possible without the stage color >..... Thanks in advance!!!!    Tudor

    For opening pages you want to look into using the navigateToURL() function.  The help documentation provides information abiout it an how to control the window aspect as well.
    To make the stage transparent is more of an html aspect than a Flash aspect, though you can set it up to publish that way.  The key is to set the wmode paraemter that is in the html embedding code to "transparent".  I am not sure if all browsers supports this feature, but I think more are willing to.

Maybe you are looking for

  • I want to stream to multiple ATV's at remote locations via internet..?

    I have 14 locations that i would like to stream a slide show and videos to. I would want to stream to all of the locations from one central location.....is this possible? I figure that this is a networking issue more than a device issue, but I really

  • Base UOM translation in query

    Hi, if i check some data on R/3 tables i can see Base UOM = "EA", but when i see it on a transaction it is translated to "C/U" according to my logon language. On the infocube the same data loaded appears as "EA", the question is is it going to be tra

  • Where is the default theme of SAP GUI saved

    Hey Everybody We want do distribute the SAP GUI with help of the Installationserver. This works fine now but we want to distribute the SAP GUI with an other Default Theme. So I like to know if there is any possibility to do this? This setting must be

  • Can I use DDR2 800 with Normal Athlon 64 (no X2) on K9NU NEO m/b ?

    In manual saying that " Memory Support**DDR II 400 / 533 / 667 / 800 (DDRII 800 is only for Athlon 64 X2)" Currently;, I have DDRII 800 with  Alhlon 3000+ 64 (1 core) The doubt is. If I'd like to use DDRII 800 with this normal Athlon  3000+64(not x 2

  • I need a job

    Hi friends!! My name is Hector Medrano, I'm from Colombia and I'm looking for a job about Labview. If some body knows an oportunity, let me know it. Thanks very much