Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 01-28-2007, 12:09 AM   #1 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
CSS Suckerfish drop down menu in Firefox

on this site of mine, I am implementing the Suckerfish drop down menu. It seems to work fine in IE6 but the drop down won't work in FF (see Item two menu for drop down effect). Talk about a reversal of fortune that something works in IE!


Here is what my code looks like below. Notice how I also want to get the #nav border-top to be 45px tall but it won't show up in either IE nor FF. And I want the entire width of the navigation to be the background color of green but that isn't showing up either.

I know the code is right because I implemented the same drop down effect at this site of mine This site is how the drop down is supposed to look like.

So there must be something else with the html or css that is affecting it. But I can't pinpoint it.

Thoughts? Ideas?


Code:
#nav { background-color: #249374; overflow: hidden; border-top: 45px solid #249374; } #nav ul { display: table; margin: 0 auto; white-space:nowrap; } #nav a { display: block; width: 10em; color: #FFF; background-color: #249374; } #nav a:hover { background-color: #cfe0b6; } #nav li { position: relative; display: table-cell; width: 10em; } #nav li ul , #navmenu li li { display: block; } #nav li ul { position: absolute; width: 10em; left: -999em; } #nav li:hover ul { left: auto; }
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-28-2007, 02:47 AM   #2 (permalink)
Senior Member
 
Join Date: 07-22-06
Location: Denver, Colorado, USA
Posts: 469
iTrader: 0 / 0%
Latest Blog:
None

jumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nicejumpenjuhosaphat is just really nice
It's something I've been dabling with for the past few months.....The best solution I could find(and it's a pretty nice solution) is this: http://www.xs4all.nl/~peterned/csshover.html#

With this page and some time, you can come up with a really good drop down menu....or a drop up-left-right menu for that matter. Good luck, and let us know if you need more help with this.
jumpenjuhosaphat is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-28-2007, 05:58 AM   #3 (permalink)
Moderator
 
Hades's Avatar
 
Join Date: 01-23-07
Location: Buenos Aires, Argentina
Posts: 1,250
iTrader: 0 / 0%
Hades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest order
Hi, I've taken a look at the code of both pages and I see only one small change from one to another.

On crossroadsclub.net you stated at line 50:
#nav li ul , #nav li li { display: block; }

And on sachitesting.com it says:
#nav li ul , #navmenu li li { display: block; }



I think it should be on both:
#nav li ul , #nav li li { display: block; }

since you are not using any tag with the id="navmenu". But I don't see other differences.

If you get stuck with this I suggest you to try one of these menus.
__________________
Hades,
Ancient god, King of the Nether World, and Guardian of the Dead.
...and on my free time I'm also a web developer, contact me if you need one!
Hades is online now  
Add Post to del.icio.us
Reply With Quote
Old 01-28-2007, 09:51 AM   #4 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
Good catch, Hades. I overlooked that issue. But even with that fixed, I still can't get the background color to be green.

The links you provided weren't for drop down menus, though.


Quote:
Originally Posted by Hades View Post
Hi, I've taken a look at the code of both pages and I see only one small change from one to another.

On crossroadsclub.net you stated at line 50:
#nav li ul , #nav li li { display: block; }

And on sachitesting.com it says:
#nav li ul , #navmenu li li { display: block; }



I think it should be on both:
#nav li ul , #nav li li { display: block; }

since you are not using any tag with the id="navmenu". But I don't see other differences.

If you get stuck with this I suggest you to try one of these menus.
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-28-2007, 10:04 AM   #5 (permalink)
Moderator
 
Hades's Avatar
 
Join Date: 01-23-07
Location: Buenos Aires, Argentina
Posts: 1,250
iTrader: 0 / 0%
Hades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest order
Quote:
But even with that fixed, I still can't get the background color to be green.
Hi, I see them with a green background in both FF and IE.

This is how it looks to me:

Internet Explorer 6:


Firefox 2:


Maybe your browser is caching the CSS file?

Regarding to the link I gave you earlier. Two of these menus are dropdowns:
-Dropdown Menu
-Tab Menu

Hope it helps :)
__________________
Hades,
Ancient god, King of the Nether World, and Guardian of the Dead.
...and on my free time I'm also a web developer, contact me if you need one!
Hades is online now  
Add Post to del.icio.us
Reply With Quote
Old 01-28-2007, 12:26 PM   #6 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
Yes, that is how they look in my browser too. I mean I want the entire green background to span the width of the website. Make sense?
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-28-2007, 04:23 PM   #7 (permalink)
Moderator
 
Hades's Avatar
 
Join Date: 01-23-07
Location: Buenos Aires, Argentina
Posts: 1,250
iTrader: 0 / 0%
Hades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest order
On about line 139 you have this statement:

#nav ul {
display: table;
margin: 0 auto;
white-space:nowrap;
background-color: #249374;
}


Simply add a width property within that block, something like:
width: 100%;

Good Luck!
__________________
Hades,
Ancient god, King of the Nether World, and Guardian of the Dead.
...and on my free time I'm also a web developer, contact me if you need one!
Hades is online now  
Add Post to del.icio.us
Reply With Quote
Old 01-29-2007, 11:34 AM   #8 (permalink)
Member
 
sachi's Avatar
 
Join Date: 07-12-06
Posts: 30
iTrader: 0 / 0%
Latest Blog:
None

sachi is liked by somebodysachi is liked by somebodysachi is liked by somebody
Thanks, that did the trick. Also, it turns out that I have incorrect comments such as this (<!----- ) . That was what caused problems.
sachi is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-29-2007, 07:02 PM   #9 (permalink)
Senior Member
 
Join Date: 01-02-07
Location: PA, USA
Posts: 191
iTrader: 0 / 0%
Latest Blog:
None

Arenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebodyArenlor is liked by somebody
Send a message via ICQ to Arenlor Send a message via AIM to Arenlor Send a message via MSN to Arenlor Send a message via Yahoo to Arenlor
Ah wow, wouldn't have thought of that myself, I know though that when I got the one site I'm in charge of I cleaned up a whole load of comments like that.
Arenlor is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-29-2007, 07:12 PM   #10 (permalink)
Moderator
 
Hades's Avatar
 
Join Date: 01-23-07
Location: Buenos Aires, Argentina
Posts: 1,250
iTrader: 0 / 0%
Hades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest orderHades is a web professional of the highest order
Hi!

The HTML comments within the CSS is placed in order to let older browsers to read the page content, even if they do not support CSS.

you usually write:

HTML Code:
<style type="text/css"> <!-- /* ... This section contains the format definitions ... */ --> </style>
that does not affect the style's functionality.

:)
__________________
Hades,
Ancient god, King of the Nether World, and Guardian of the Dead.
...and on my free time I'm also a web developer, contact me if you need one!
Hades is online now  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS drop down menu http Coding Forum 1 12-06-2006 01:23 AM
DHTML Menu | Drop Down Menu Pen Tongue SEO Forum 4 01-06-2005 07:18 PM
needed drop down menu docquesting Coding Forum 3 07-15-2004 05:11 PM
Drop Down Menu AJBurnett34 Coding Forum 12 06-27-2004 08:01 PM
Drop down menu Johan007 SEO Forum 6 12-14-2003 11:49 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 12:13 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.