Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
FF/IE render problems, CSS navigation list
Old 02-20-2008, 07:54 PM FF/IE render problems, CSS navigation list
HitRaj47's Avatar
Extreme Talker

Posts: 177
Location: GA
Trades: 0
I am designing the layout for my web site project for class. I am having trouble getting my navigation menu to work. I am using IE7 and FF2.

It displays how I want in IE7, but not in Firefox. Links:

Layout page in XHTML

CSS code

I always have issues with these two browsers displaying things differently

Thanks for any help!
HitRaj47 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-21-2008, 10:50 AM Re: FF/IE render problems, CSS navigation list
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
I always have issues with these two browsers displaying things differently
And you always will as long as Microsoft defies the standards.

Ok, for one thing, dump the table, you don't need it. I'll never understand why anyone would stick divs inside a moldy old table

2 - fix your validation errors, you have unclosed or improperly closed tags.

Your code for your nested list is incorrect:
Quote:
<ul>
<li><a href="#" id="active">Home/News</a></li>
<li><a href="#">Games</a></li>

<ul id="subnav">
<li><a href="#" id="subactive">Action/FPS</a></li>
<li><a href="#">RPG/MMORPG</a></li>
<li><a href="#">Driving</a></li>
<li><a href="#">Strategy</a></li>
<li><a href="#">Family</a></li>

</ul>
<li><a href="#">Help/Support</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
It should be this:
Quote:
<ul>
<li><a href="#" id="active">Home/News</a></li>
<li><a href="#">Games</a>

<ul id="subnav">
<li><a href="#" id="subactive">Action/FPS</a></li>
<li><a href="#">RPG/MMORPG</a></li>
<li><a href="#">Driving</a></li>
<li><a href="#">Strategy</a></li>
<li><a href="#">Family</a></li>
</ul>
</li>

<li><a href="#">Help/Support</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-21-2008, 07:28 PM Re: FF/IE render problems, CSS navigation list
HitRaj47's Avatar
Extreme Talker

Posts: 177
Location: GA
Trades: 0
WOW! I forgot to close a tag and I'm so pressed for time I'm always rushing to just finish things. Yes I'm sorry, thats my excuse for not validating AND why I used the table for layout. I wouldn't normally do that, but for some reason I couldn't float the divs properly to get it how I want, so I did it the bad way. Promise I won't do it again!

Thanks for your help, this fixed the navigation list problem! I really should pay more attention!
HitRaj47 is offline
Reply With Quote
View Public Profile
 
Old 02-21-2008, 10:00 PM Re: FF/IE render problems, CSS navigation list
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You didn't forget the closing </li>, you had it in the wrong place - compare your original code with mine, you'll see where I MOVED that closing </li> tag.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to FF/IE render problems, CSS navigation list
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31274 seconds with 12 queries