Results 1 to 6 of 6

Thread: Why is my CSS not doing drop down menus?

  1. #1
    Join Date
    Apr 2010
    Posts
    76

    Why is my CSS not doing drop down menus?

    I am student in BSC(IT) and I am having a project for my last semester. Actually, I am developing a website for the same. Well, I am facing a weird problem now, in between the project. Actually, what I need to know is that why is my CSS not doing drop down menus?. All the other features that I have tried out in this project has worked out fine.

    It will be a great help if someone could help me with the code for the same or let me understand what may be causing the issue. All possible suggestions and comments are duly appreciated.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Why is my CSS not doing drop down menus?

    Hello there, if your CSS not doing drop down menus, then you can have a look at the following 2 threads because there are required codes given there. I suppose that they will prove to be of help to you:

    After trying out the solutions from these threads, let me know if the issue is solved or not.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Why is my CSS not doing drop down menus?

    First remove all the CSS drop down menu codes and then, check out with the simple code that is provided below. I have just used the simple mouseover and mouseout JavaScript functions in this case:
    Code:
    <html>
    <body>
    
    <script type="text/javascript">
    function viewsubmenu(id)
    {
        document.getElementById("submenu_" + id).style.display="block";
    }
    function hidesubmenu(id)
    {
        document.getElementById("submenu_" + id).style.display="none";
    }
    </script>
    
    <style>
    #submenu_1 {
    display:none;
    }
    </style>
    
    <div class="nav">
        <ul>
            <li><a onmouseover="viewsubmenu('1')" onmouseout="hidesubmenu('1')">HOME</a></li>
        </ul>
    
        <ul id="submenu_1">
            <li>ABC</li>
        </ul>
    </div>
    
    </body>
    </html>

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Why is my CSS not doing drop down menus?

    I think that you are using a wrong style in the CSS and this may be the reason why it is not doing drop down menus. The easiest to fix such situations is to try going about with another technique or style.

    Just dont try out one style in the list, that is only linked list. Try out the other styles too and you may be able to understand what is going wrong in the style that you are using currently.

    I wish you good luck.......

  5. #5
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Why is my CSS not doing drop down menus?

    There are many ready-made codes available on the internet for the purpose of the drop down menus. If you are not able to figure out how to solve the problem in your code, then simply embed the ready-made code into your CSS file. I can assure you that it can do the trick. You just need to understand what the code is doing after you can make it working.

  6. #6
    Join Date
    Apr 2010
    Posts
    76

    Re: Why is my CSS not doing drop down menus?

    Hello again, thanks for providing all your suggestions to eradicate this situation that the CSS is not doing drop down menus. Well, I have not tried out any of the solution provided by you people. I will try out the same and let you know if the issue is solved or not. I hope that there will be more help granted by I ask for some more suggestions.

    Anyways, you people have a nice time.

Similar Threads

  1. How to remove "drop in savings" drop down from Google Chrome
    By Echa in forum Technology & Internet
    Replies: 7
    Last Post: 03-03-2012, 10:57 AM
  2. Excel 2010 - drop down menus help
    By MadHatter in forum Windows Software
    Replies: 1
    Last Post: 10-02-2012, 12:07 AM
  3. Replies: 3
    Last Post: 14-12-2011, 11:13 AM
  4. Drop In/Drop Out Split Screen in Resistance 3
    By Bubboy in forum Video Games
    Replies: 5
    Last Post: 20-08-2011, 10:48 PM
  5. Unable to see drop down menus on websites in internet explorer 8
    By $Daiwik$ in forum Technology & Internet
    Replies: 5
    Last Post: 21-02-2011, 10:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,410,102.67137 seconds with 17 queries