Solved

Why doesn't this menu work?

Posted on 2012-04-10
7
190 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

831 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