Forum Moderators: not2easy

Message Too Old, No Replies

Can You Use 2 Diff Menu Styles on 1 Page?

CSS Menu Question

         

Diane Clancy

5:51 pm on Feb 17, 2007 (gmt 0)

10+ Year Member



I have just created a pop-out menu for the main navigating my website. Now I want to put some more pop-out menus deeper into my site. (the original menu is the main navigation bar and is a component so it goes on everypage and needs to get changed just in 1 place).

I was hoping to use a slightly different style pop-out menu on specific pages - like a wider menu - but it seems like I have to choose one menu style or the other for a page.

I have spent days educating myself to get to this one menu and get it at least fairly right. But I would love to have a wider menu

I hope I am wrong ... any advice?

I named the 2 menu styles differently - but I could use advice.

Thank you,
Diane Clancy

scriptmasterdel

1:02 pm on Feb 18, 2007 (gmt 0)

10+ Year Member



Please correct me if i am wrong but i believe you are trying to differentiate the menu on selective pages using one menu source?

If i am right then this could be done in a programmatic way maybe?

Do you have a method of how you would like this to work? Or is it just selective pages?

Thank you.

I hope i have made sence.

Del

Diane Clancy

7:28 pm on Feb 18, 2007 (gmt 0)

10+ Year Member



Hi Del -

Thank you for answering this post!

I am trying to have 2 different menu styles on one page (one the main navigator and the other the links from that particular page). I have my css script and file and it works fine for one menu. If I only wanted one type of menu style, it would be golden.

My friend told me that I just have to use a specic name for each id
like id="menumain" and id="menupage". I have changed the names in the html and css files and once I change the name from "menu", it stops working.

On most pages I will be using both menu types (assuming I can get this to work).

Any ideas? Is this clear?

Thank you again!
Diane

scriptmasterdel

10:26 pm on Feb 18, 2007 (gmt 0)

10+ Year Member



Have you duplicated all css properties from "menumain" and changed the name of each reference to to "menupage" instead of "menumain?

Then by changing the name of the element on the main page should be renamed and that should be fine.

If you are still having problems, please post some code and i will find the solution for you.

Del

Diane Clancy

1:54 pm on Feb 19, 2007 (gmt 0)

10+ Year Member



Hi Del -

yes, I thoroughly changed the menu names in the css file and also changed the name in the html file. So that is working! Thank you!

May I ask another question?

My menu now works in firefox, safari, camino, opera ... but in netscape the first "cell" of the menu won't pop-out. I think it must be a code problem in my html file. Off hand, does this ring any bells for you?

On my page menu (as opposed to the main navigation menu) the first "cell" pop-outs fine. I had gotten the menu code from a site that tells you how to make menus - and gives the code for you to use - and shows how to build it. I got confused so I took the code and changed it.

But even using the original code, the first "cell" won't pop-out.

Any ideas?
Thank you!
Diane

Diane Clancy

6:57 pm on Feb 19, 2007 (gmt 0)

10+ Year Member



Hi Dell -

I can give a few clarifications.

In Mac Internet Explorer, the menu is a list - where it should be just a menu without pop-outs. In IE 6 it works as expected with the menu as is without pop-outs.

In Netscape 7 - if the menu is on a page by itself, it works fine. Once it goes in with other stuff, the first "cell" either doesn't pop-out or is listed without bullets - depending on which menu I hook it up to.

In the other browsers it is great.

Does this configuration give any clues? (I know in several programs, when someone tells me their problem, I often know where they are messing themselves up). I hope you can see an obvious mistake I am making.

Thank you in advance for any help you can give me!
Diane

cmarshall

8:09 pm on Feb 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Mac Internet Explorer

Oooh...There be dragons. Even though Mac IE is considered "Version 5.1/5.2," don't believe it. Neither version supports half the stuff Windows IE supports.

I often support Mac IE, but it's not something you should do unless you really need to. The rules are very different for Mac IE. If you want to support Macs, then support Safari. There is a difference between Safari 1 and 1.2, but both versions blow IE out of the water.

Diane Clancy

1:59 am on Feb 20, 2007 (gmt 0)

10+ Year Member



Thank you for your input. I figured out the problem with Netscape - an </a> was in the wrong place - so that is solved.

I had IE 5 - Mac solved a week ago and it isn't now - but I won't worry about it for now - just get the code tweaked and right and then tackle if I want.

So the basic menus now work in everything but Mac IE - whew!

Thank you again for your help!
Diane

Diane Clancy

3:50 pm on Feb 20, 2007 (gmt 0)

10+ Year Member



Got IE fixed also

I forgot that sometimes you have to quite IE 5 Mac to clear it so you can see what you really have. Learned that back in the bad old days when I used that as my browser.

Thank you All!

Totally fixed on this problem!

Diane