IE7 Menu Width stretches

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
infmscarclub
Beginner
Beginner
Posts: 2
Joined: Mon Dec 14, 2009 12:52 pm

IE7 Menu Width stretches

Post by infmscarclub »

Hello,

Been trying to search all over for a solution. In firefox the menu's work perfectly, in IE7 the menu stretches all the way to the right. I tried playing with the properties firstly trying the "Menu Width" property but it didnt work.

http://forums.infmscarclub.com

That is the site where the menu is located. If you view the link in Firefox you will see that its fine except for my temporary item width settings. In IE7 you will see the menu stretch to the right.

Your help will be much appreciated.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: IE7 Menu Width stretches

Post by Ruth »

Hi,

The problem is with the css generic coding for the table at 100%. This is affecting the menu since it is made up of divs, spans, tables, td etc. What you need to do is put in the menuwidth= and itemwidth= in each submenu. So, say for forums, you put in menuwidth='140px'; itemwidth='140px'; The other option is to remove that generic table 100% code. That coding needs to be in the forums submenu, not in the style. You would need to do that for each submenu, or as I noted, remove the generic table code that is set at 100%. I can't tell you why there is no problem in FF and there is in IE.

Code: Select all

with(milonic=new menuname("forums")){
overflow="scroll";
style=menuStyle;
menuwidth="140px";
itemwidth="140px";
Ruth
infmscarclub
Beginner
Beginner
Posts: 2
Joined: Mon Dec 14, 2009 12:52 pm

Re: IE7 Menu Width stretches

Post by infmscarclub »

Awesome thanks very much Ruth!!
Post Reply