displaying menus in css

This is a discussion on "displaying menus in css" within the Web Page Design section. This forum, and the thread "displaying menus in css are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 21st, 2007, 20:48
New Member
Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
displaying menus in css

Hi,
I am new to this forum and web designing, so go easy on me .

1. I have used div#navigation in the css file on all the possible ids/classes related to the menus yet the submenus are stil displaying when not used. Are there any other solution for this problem?

2. I have created the classes
Code: Select all
div#menuv a.parent{
 background-image: url(../images/navdown.gif);
 background-position: right;
 background-repeat: no-repeat;
}
div#menuv a.parent:hover  /* attaches parent-arrow on all parents */
 {
 background-image: url(../images/nav_white.gif);
 background-position: right;
 background-repeat: no-repeat;
 }
How do I keep the picture of the hovered parent while browsing through the submenus? Is there a way for that?

3. I have noticed that in IE the submenus displays correctly but that does not hold in firefox. any advices on that?

Thanks for all your help.
Reply With Quote

  #2 (permalink)  
Old Mar 21st, 2007, 22:17
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,650
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: displaying menus in css

It's a lot easier to help if you send as a link...

But I can't tell you this:
1. Yes, give a class to parent menus which hides submenus...

2. Yes, you can keep the picture of the hovered parent while browsing through the submenus, but this will not work on IE without JavaScript or a hack (which we can discuss later)

3. Need to see it in action...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
  #3 (permalink)  
Old Mar 22nd, 2007, 15:02
New Member
Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: displaying menus in css

here is the link to the menu that i am trying to test out.

http://www.humanbee.com/testing/index.php

hope this clarifies a little as to what i was asking.
I have noticed that I had to hover back and forth between the menus a little to make the unwanted submenus to pop out. The funny thing is that the content of the submenus did not show up but the the blocks did..how strange.
Reply With Quote
  #4 (permalink)  
Old Mar 23rd, 2007, 07:11
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: displaying menus in css

It's not working at all in Safari...
Reply With Quote
  #5 (permalink)  
Old Mar 23rd, 2007, 13:41
New Member
Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: displaying menus in css

Quote:
Originally Posted by Ryan Fait View Post
It's not working at all in Safari...
I believe I have mentioned that I am new to this business, what are the things I should look for between the web browsers? I am only running it on IE because I figure that most people uses IE so anything else can come afterward. Any tips and advices are welcome. Thanks
Reply With Quote
  #6 (permalink)  
Old Mar 23rd, 2007, 14:57
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: displaying menus in css

Don't code your site for IE! Code it for Firefox.

Don't use IE as your primary testing browser
Reply With Quote
  #7 (permalink)  
Old Mar 23rd, 2007, 21:08
New Member
Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: displaying menus in css

Okay so I have gone back to read up on how to create the css menu. After spending the whole afternoon (literally!) of consistently testing out the my code and from the tutorial I think it is finally working. I have tested on firefox and IE 7 it seems to be doing what I wanted now.

solved my questions from before.

Now I am facing something that I think just adding one more selector would solve the problem but couldn't figure out what..

here is the link http://www.humanbee.com/testing/index.php
If you hover over 3 -> 3.1 -> 3.1.1 -> 3.1.1.1, you'll see that 3 and 3.1 are highlighted but when you get to 3.1.1 and onto 3.1.1.1, 3.1.1 is no longer highlighted. I've noticed the difference between 3.1.1 and its predecessors is that 3.1.1 is actually a link as to just text.

I have altered

div#menuv li a:hover{
color: white;
background-color: #6495ED;
}

to

div#menuv li:hover, div#menuv li a:hover{
color: white;
background-color: #6495ED;
}

to create the highlighted (activated? not sure if i can call that) text.

any suggestions?

thanks
Reply With Quote
  #8 (permalink)  
Old Mar 23rd, 2007, 22:28
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: displaying menus in css

Congratulations, it works in Safari perfectly now.
Reply With Quote
Reply

Tags
menus css

Thread Tools

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
menus in css cressy Web Page Design 12 Apr 15th, 2007 12:42
Need some help on menus indianeditor Web Page Design 1 Sep 20th, 2006 11:27
Blooming IE and menus maxelcat Web Page Design 7 Jul 26th, 2006 14:03
menus benbacardi JavaScript Forum 5 Jun 29th, 2004 09:31
Drop down Menus u2orange Web Page Design 8 Nov 27th, 2003 16:13


All times are GMT. The time now is 10:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43