Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Why is my CSS not doing drop down menus?

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 15-05-2010
Member
 
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.

Reply With Quote
  #2  
Old 15-05-2010
Member
 
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.
Reply With Quote
  #3  
Old 15-05-2010
Member
 
Join Date: Feb 2008
Posts: 1,845
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>
Reply With Quote
  #4  
Old 15-05-2010
Member
 
Join Date: May 2008
Posts: 2,291
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.......
Reply With Quote
  #5  
Old 15-05-2010
Member
 
Join Date: Jan 2008
Posts: 1,515
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.
Reply With Quote
  #6  
Old 17-05-2010
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Why is my CSS not doing drop down menus?"
Thread Thread Starter Forum Replies Last Post
How to remove "drop in savings" drop down from Google Chrome Echa Technology & Internet 7 03-03-2012 10:57 AM
Excel 2010 - drop down menus help MadHatter Windows Software 1 10-02-2012 12:07 AM
What are the difference between Weapon Drop and Item Drop in Infinity Blade 2 Chini mao Video Games 3 14-12-2011 11:13 AM
Drop In/Drop Out Split Screen in Resistance 3 Bubboy Video Games 5 20-08-2011 11:48 PM
Unable to see drop down menus on websites in internet explorer 8 $Daiwik$ Technology & Internet 5 21-02-2011 10:20 AM


All times are GMT +5.5. The time now is 11:00 AM.