HTML/CSS/Javascript Drop Down Menu?
-
What's the easiest way to make a drop down menu when you hover over a link? For example, I have a website. There's a navigation bar on top with links to pages. Here's a picture of what it currently looks like: http://i.imgur.com/zCHMQ.png What I want it to look like is this: http://i.imgur.com/tob6I.png I have my CSS set so that when you hover over a link, it changes the background and font color. I want to maintain that property, and have it also apply for the drop down links. Also, I've tried making a menu in the past, but I've run into three issues. 1) While not hovering over the Lessons block, the border under the word "Lessons" would appear where the border at the bottom of the menu is and there would be no border directly under it. 2) When the page loaded, the menu was there. It would only disappear after hovering over it once. 3) Even while the menu is not visible, the rest of the website would be pushed down below where the bottom of the menu would be, leaving a huge gap between the menu bar and the title of the website. The simplest drop down menu that maintains the look of my website is what I want. I'm not looking for any sliding or fading animations, just a simple pop-in, pop-out. If you could help me, I'd greatly appreciate it.
-
Answer:
for 1 and 3 use position absoute or relative(dont remember exactly) for 2 use display:none in it's default css and only on mouse over show it...and on mouse leave...hide it again
Peter at Yahoo! Answers Visit the source
Related Q & A:
- How do you search DOM elements using CSS selectors in Chrome?Best solution by Stack Overflow
- How to apply custom css to CKEditor?Best solution by stackoverflow.com
- Why would Arial be placed before Helvetica when using font-family in CSS?Best solution by Quora
- Why is Javascript called Javascript, if it has nothing to do with Java?Best solution by Stack Overflow
- How to check if drop down menu of ActionBar is active?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.