Solved

Navigation Bar Problem with CSS

Posted on 2014-04-25
5
196 Views
Last Modified: 2014-05-23
I have a simple navigation bar with a basic dropdown menu. My issue is when the drop down menu pops down it moves all of the text on the page.  How do I get this text to stay and the drop down menu to overlap my data.  Also if I added more drop down menus to the other links I would need those to do the same. You can see the site here: http://doeringdesign.com/MrBid2/ and have the files attached. The PNG files (fire, water, wind) go into a folder called images, if needed.

Thanks in advance!
style.css
0
Comment
Question by:sparker1970
5 Comments
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
Comment Utility
Add position absolute to line 93 of styles.css
#menu ul ul {
  overflow: hidden;
  padding: 0 45px;
  position:  absolute;
}

Open in new window

0
 
LVL 18

Expert Comment

by:Rartemass
Comment Utility
It looks fine to me in Chrome and IE 9.

To ensure everything is OK you can do as julianH suggests, and also add a z-index value. If you use a high number such as 100 you have plenty of space beneath that for all other elements. This only works on positioned elements so to have the correct layout you will need to add positioning to any element that the menu overlaps.

http://www.w3schools.com/cssref/pr_pos_z-index.asp
0
 
LVL 58

Expert Comment

by:Gary
Comment Utility
I've requested that this question be closed as follows:

Accepted answer: 500 points for julianH's comment #a40022647

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 

Author Closing Comment

by:sparker1970
Comment Utility
I apologize for the time it took me to respond. I have been out of the office for a few weeks and just getting caught up on a number of issues. This solution worked perfectly and I was able to use the code you posted almost verbatim.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now