Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Why doesn't this menu work?

Posted on 2012-04-10
7
191 Views
Last Modified: 2012-08-13
I'm building a cascading menu using CSS. I've done it before, but I'm still pretty new to this, hence my current quadary.

Head out to http://muscularchristianityonline.com/campus/about.php I'm trying to get the "About" link on the nav bar to open up a pull down menu just like I did when you head out to http://www.countryshowdown.com. But I'm missing something and I don't know what.

How do I get my pulldown menu to show up? I should be able to hover over "About" and see another menu option, but it's not working and I don't know why.

Thoughts?
0
Comment
Question by:brucegust
  • 4
  • 3
7 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 37829338
It's opening for me in Firefox.  You just need to adjust the top value from 100px to 45px in the #nav ul
0
 

Author Comment

by:brucegust
ID: 37829380
I see what you're talking about, but it doesn't change anything in IE. Is there anything else that's lacking?

Thing is, the exact same infrastructure is at countryshowdown.com. This should work and I don't know why it doesn't.
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37829426
Your missing a doctype.  It's throwing IE into Quirks mode.  You can use the HTML 5 Doctype or you can use another one. But you NEED a doctype.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:brucegust
ID: 37834170
I went with <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">, but while it works in Safari, it doesn't work in IE.

What can I do to make it cross platform friendly?
0
 
LVL 30

Accepted Solution

by:
LZ1 earned 500 total points
ID: 37834177
Actually the Doctype is something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Or if you want to use the new HTML5 stuff:
<!DOCTYPE>
0
 

Author Comment

by:brucegust
ID: 37834611
That did it!

I've got another question about how to distribute my links evenly on my nav bar. Would love it if you could weigh in on my dilemma.

Thanks!

http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_27671547.html
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37834913
I'll see what I can do
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

809 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