Screen position in Firefox with text size increase -[SOLVED]

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mpilgrim
Beginner
Beginner
Posts: 5
Joined: Wed Aug 03, 2005 7:41 pm

Screen position in Firefox with text size increase -[SOLVED]

Post by mpilgrim »

I have two menus with two different styles, "Main Menu" and "Login".

What I'd like to do is have the "Login" menu always appear to the right of my "Main Menu". (As if "Login" is part of "Main Menu" just with a different font and bg styles)

This works fine for the most part if I assign it like this in my "menu_data.js" file:

Code: Select all

with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=0;
orientation="horizontal";
style=menuStyle;
top=79;
screenposition="left";
Then:

Code: Select all

with(milonic=new menuname("Login")){
alwaysvisible=1;
left=466;
orientation="horizontal";
style=menuStyle4;
top=79;
The problem comes in Firefox when I want to increase the text size ( View > Text Size > Increase ) 2 or 3 times. The "Login" part stays where it is while the part of the "Main Menu" disappears underneath the login.

Is there a way to make this "Login" menu appear directly to the right of the "Main Menu" no matter what the text size in FireFox?

http://media.marketwire.com/SECURE/menu_data.js

http://media.marketwire.com/SECURE/test.htm
(please ignore the broken images on the page)


Any help would be appreciated,
Matt
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi Matt,

Just out of curiosity, why don't you just make it part of the main menu? The only difference between that style and the style for the login is the offcolor, the onbgcolor and the padding which you can code into the aI string. You can make it the last item and still have it look like it does now. Beginning with your existing last item it would be:

Code: Select all

aI("text= separatorsize=0;onbgcolor=#ffffff;pointer=default;");
aI("status=Log In to Submit your Press Release;text=Log In/Submit;url=http://dev.marketwire.com/dev/customer_login#;offcolor=#CC0000;onbgcolor=#CC0000;padding=3px;");
}
The separatorsize=0;onbgcolor=#fffff;pointer=default; in the now existing last item is to keep any color change or mouse change from happening as you pass over that blank item to the login, then in the last one you have just included the changes for the colors and padding in the aI string.

This way, when you change text size it is part of the menu so it will shift.

If you look below my name there are links to different property references for the menu.

Ruth
mpilgrim
Beginner
Beginner
Posts: 5
Joined: Wed Aug 03, 2005 7:41 pm

Post by mpilgrim »

Thanks again Ruth,
That should be all you hear from me for a while!

Worked just like I wanted it to.
- Matt
Post Reply