Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-30-2007, 03:07 AM   PM User | #1
epro
New to the CF scene

 
Join Date: Jul 2007
Location: USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
epro is an unknown quantity at this point
CSS Menu is good in FF but messed up in IE

Hello,

I am having trouble with my menu in IE.

This menu works 100% perfect in FF but not IE

The problem is that the background image for the top level is inheriting down to the second level in IE.... thats the only thing I can't figure out.

Here is the link to my menu:
http://www.blueflamesearch.com/menu.html

Can someone please look at my source and tell me what I can do to get it working right in IE.

Thank you,
Ryan
epro is offline   Reply With Quote
Old 07-30-2007, 03:23 AM   PM User | #2
twodayslate
Senior Coder

 
twodayslate's Avatar
 
Join Date: Mar 2007
Location: VA
Posts: 1,042
Thanks: 67
Thanked 39 Times in 39 Posts
twodayslate is on a distinguished road
div#nav ul li a is too general for IE. There are links in the sub nav so it carries over in IE.

Looks really nice by the way! Keep it up!
__________________
twitter | Quality Hosting - $5.95/mo*
Feel free to PM me!
twodayslate is offline   Reply With Quote
Old 07-30-2007, 03:47 AM   PM User | #3
epro
New to the CF scene

 
Join Date: Jul 2007
Location: USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
epro is an unknown quantity at this point
Thanks for the complement, I appreciate it.

Since that is too general for IE, what do you suggest I add?

I tried div#nav ul li a.drop { background-image: none; } but no luck....
epro is offline   Reply With Quote
Old 07-30-2007, 04:03 AM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
You can't use the same ID more than once. If you must use a class. However in this case its the cause of your issue.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||

Last edited by _Aerospace_Eng_; 07-30-2007 at 04:22 AM..
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-30-2007, 04:04 AM   PM User | #5
twodayslate
Senior Coder

 
twodayslate's Avatar
 
Join Date: Mar 2007
Location: VA
Posts: 1,042
Thanks: 67
Thanked 39 Times in 39 Posts
twodayslate is on a distinguished road
#nav ul li .drop a { background-image: none; }

I do not see why #menu_parent is numbered. Just make it a class .menu_parent
__________________
twitter | Quality Hosting - $5.95/mo*
Feel free to PM me!

Last edited by twodayslate; 07-30-2007 at 05:28 AM..
twodayslate is offline   Reply With Quote
Old 07-30-2007, 04:21 AM   PM User | #6
epro
New to the CF scene

 
Join Date: Jul 2007
Location: USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
epro is an unknown quantity at this point
that worked perfectly! Thank you soo much!

the java code I am using needs #menu_parent to be numbered to match the menu_child in relation.

Thanks again for the help. I appreciate it a lot.
epro is offline   Reply With Quote
Old 07-30-2007, 04:23 AM   PM User | #7
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
I meant to say you CAN'T use the same id more than once. Its invalid coding. To be honest you are going about your menu the wrong way. You don't need javascript to make it work in the major browsers like Firefox.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-30-2007, 05:27 AM   PM User | #8
twodayslate
Senior Coder

 
twodayslate's Avatar
 
Join Date: Mar 2007
Location: VA
Posts: 1,042
Thanks: 67
Thanked 39 Times in 39 Posts
twodayslate is on a distinguished road
Quote:
Originally Posted by _Aerospace_Eng_ View Post
I meant to say you CAN'T use the same id more than once. Its invalid coding. To be honest you are going about your menu the wrong way. You don't need javascript to make it work in the major browsers like Firefox.
He (she?) is right... You do not need javascript for that navigation and you should not use ids twice.

http://www.cssplay.co.uk/menus/

Change this
Code:
<div id="nav">
		<ul id="nav">

			<li id="nav">
To (don't forget to change CSS then)
Code:
<div id="navwrapper">
		<ul id="navul">

			<li id="nav">
__________________
twitter | Quality Hosting - $5.95/mo*
Feel free to PM me!

Last edited by twodayslate; 07-30-2007 at 05:30 AM..
twodayslate is offline   Reply With Quote
Old 07-30-2007, 05:52 AM   PM User | #9
epro
New to the CF scene

 
Join Date: Jul 2007
Location: USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
epro is an unknown quantity at this point
thanks for the tip.

Can I also do this:

Code:
<div id="nav">
		<ul>

			<li>
I did, and it still works right, but is that considered proper coding?
epro is offline   Reply With Quote
Old 07-30-2007, 06:03 AM   PM User | #10
twodayslate
Senior Coder

 
twodayslate's Avatar
 
Join Date: Mar 2007
Location: VA
Posts: 1,042
Thanks: 67
Thanked 39 Times in 39 Posts
twodayslate is on a distinguished road
That is also proper.
__________________
twitter | Quality Hosting - $5.95/mo*
Feel free to PM me!
twodayslate is offline   Reply With Quote
Old 07-30-2007, 06:10 AM   PM User | #11
epro
New to the CF scene

 
Join Date: Jul 2007
Location: USA
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
epro is an unknown quantity at this point
Cool, thank you
epro is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:20 AM.


Advertisement
Log in to turn off these ads.