Submenu font size issues with Firefox 0.8 and Opera 7.11

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
scargin
Super Advanced
Super Advanced
Posts: 36
Joined: Thu May 22, 2003 1:18 am
Location: Melbourne, Australia

Submenu font size issues with Firefox 0.8 and Opera 7.11

Post by scargin »

I have added the version 5.14 of the table bound menu to a website that I am building and have noticed that it is not displaying correctly in Firefox 0.8 and Opera 7.11.

I suspect that it is something I have done rather than the menu.

The menu displays perfectly in IE 6.1.

The site can be viewed at : http://d8199.i44.quadrahosting.com.au/default_blank.asp

Thanks in advance,

Stuart Cargin
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Place the script under the <body> tag:

Code: Select all

<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>	
	<script	language=JavaScript>
	if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");		
	  else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>"); 
	</script>
	<SCRIPT language=JavaScript src="menu_dataRapidMap.js" type=text/javascript></SCRIPT>
maz
scargin
Super Advanced
Super Advanced
Posts: 36
Joined: Thu May 22, 2003 1:18 am
Location: Melbourne, Australia

Post by scargin »

Placed the script under the body tag and it is still doing it.

Any other suggestions?

Thanks,

Stuart
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

What, exactly, is not displaying properly in Opera. Looking at the site in 7.23 (apparently the last release before the current 7.50b1) I'm not seeing anything obvious.

We have seen previous issues with Opera 7.11 that were corrected by going to 7.23.
John
scargin
Super Advanced
Super Advanced
Posts: 36
Joined: Thu May 22, 2003 1:18 am
Location: Melbourne, Australia

Post by scargin »

Sorry about that . I should have been more specific.

In Firefox and Opera, the submenu text is larger than the main menu text. It appears to be ignoring the settings in the menu_data.js file.

Image

Thanks,

Stuart
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Same problem as in other post, wrong style name ;)

maz
scargin
Super Advanced
Super Advanced
Posts: 36
Joined: Thu May 22, 2003 1:18 am
Location: Melbourne, Australia

Post by scargin »

As far as I can see my style names seem to be correct. It has been suggested that the issue may be related to combining the menu in a table cell with rollover images??

I even changed the reference to the style name in page itself to menuStyle and added the padding code to the menu_data.js file. This made no difference and I have since changed it back.

Thanks,

Stuart
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Thanks for the clarification.

I now see the problem. Much better cross-browser operation is frequently achieved by specifying font sizes in px rather than pt. Try changing fontsize="12"; to fontsize="12px"; (or whatever - switching to px may require a little adjustment).

Also, any numeric-only parameter does not require the "", so fontsize="12"; would actually be fontsize=12;, etc.
John
scargin
Super Advanced
Super Advanced
Posts: 36
Joined: Thu May 22, 2003 1:18 am
Location: Melbourne, Australia

Post by scargin »

Thanks John,

The issue in Firefox and Opera seems to be attributed to the font size as you suspected. Once I changed it to a pixel setting the fonts size was displayed correctly.

Thank you also to Maz and Ruth for all your help.

Stuart
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

As mentioned in another post, glad we got it for you.

Enjoy.
John
Post Reply