Different behaviour with IE6 & Mozilla

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
crgarner
Beginner
Beginner
Posts: 3
Joined: Wed Dec 08, 2004 2:26 pm
Location: Suffolk,UK

Different behaviour with IE6 & Mozilla

Post by crgarner »

My web page http://www.pettistree.suffolk.gov.uk/newpettistreetwo/ displays as I would like it under IE6, but the submenus look different under Mozilla. Under Mozilla the submenus are 750px wide with text centred. Any ideas, please?
Chris G
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You're down level on the menu. v5.52, we are now at v5.63. Try upgrading and see if that fixes the problem. Make sure to keep the old files just in case.

Ruth
crgarner
Beginner
Beginner
Posts: 3
Joined: Wed Dec 08, 2004 2:26 pm
Location: Suffolk,UK

Post by crgarner »

Now on 5.63 Still behaves in the same way!
Chris G
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

The problem comes from the style sheet. I believe it is this line

Code: Select all

TABLE {
	MARGIN-LEFT: auto; MARGIN-RIGHT: auto
}
The other lines to do with tables may also do other things. I think you might have to make that a class if you must have it. If you remove that from the stylesheet the submenus on Netscape go back to normal size. As to the text being in different position, if you are making it all left, you might put text="left"; at the end of you menuStyle definition. Hope that helps.

Ruth
crgarner
Beginner
Beginner
Posts: 3
Joined: Wed Dec 08, 2004 2:26 pm
Location: Suffolk,UK

Post by crgarner »

Ruth

Many thanks. Converting the TABLE to a class in the style sheet solves the problem.
Chris G
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Chris,
I made a mistake about the left for the text. It's align="left"; I don't know where I go the text bit. :oops: As to the stylesheet problem. When you have differences between browsers, the first thing to check is the stylesheet. Usually, I remove it totally and see if the menu then functions OK. The menu is made up of tables, divs, spans etc, so stylesheets can cause some problem in different browsers, which can usually be solved by using class.

Ruth
Post Reply