iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old March 21st, 2007, 05:48 PM   #1
New Member
 

Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 kohan is on a distinguished road
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:
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.
kohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 21st, 2007, 07:17 PM   #2
Most Reputable Member
 
spinal007's Avatar
 

Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,683
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Rep Altering Power: 0 spinal007 has a spectacular aura about spinal007 has a spectacular aura about
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...
__________________
Diego - Web-Developer & London SEO Expert
jQuery Plugins: Multiple File Upload, Star Rating, FCKEditor | NEW: XML to JSON
spinal007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 22nd, 2007, 12:02 PM   #3
New Member
 

Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 kohan is on a distinguished road
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.
kohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 23rd, 2007, 04:11 AM   #4
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: displaying menus in css

It's not working at all in Safari...
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 23rd, 2007, 10:41 AM   #5
New Member
 

Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 kohan is on a distinguished road
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
kohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 23rd, 2007, 11:57 AM   #6
Elite Veteran
 

Join Date: Jan 2007
Location: You know where
Age: 32
Posts: 4,608
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all karinne is a name known to all
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
karinne is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 23rd, 2007, 06:08 PM   #7
New Member
 

Join Date: Mar 2007
Location: Chicago
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 kohan is on a distinguished road
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
kohan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old March 23rd, 2007, 07:28 PM   #8
Elite Veteran
 
Ryan Fait's Avatar
 

Join Date: May 2006
Location: Las Vegas
Posts: 3,784
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough Ryan Fait is a jewel in the rough
Re: displaying menus in css

Congratulations, it works in Safari perfectly now.
Ryan Fait is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
menus css


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 HTML, XHTML and CSS 12 April 15th, 2007 08:42 AM
Need some help on menus indianeditor HTML, XHTML and CSS 1 September 20th, 2006 07:27 AM
Blooming IE and menus maxelcat HTML, XHTML and CSS 7 July 26th, 2006 10:03 AM
menus benbacardi JavaScript 5 June 29th, 2004 05:31 AM
Drop down Menus u2orange HTML, XHTML and CSS 8 November 27th, 2003 12:13 PM


Search Engine Optimization by vBSEO 3.2.0 RC8