border issues with IE

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
TSAMandy
Advanced
Advanced
Posts: 11
Joined: Tue Jan 04, 2005 9:42 pm

border issues with IE

Post by TSAMandy »

I just upgraded to the latest (yes, *latest*) version, and suddenly menu and menu item borders, as defined in CSS classes and applied to divs, are being clobbered or ignored entirely in IE 6.0.29. Has anybody else noticed this? In Firefox it works the same as it always has. I would just put the border properties in style defs, but because of the multiple varieties of menus I'm using, it's a lot easier to use CSS.
TSAMandy
Advanced
Advanced
Posts: 11
Joined: Tue Jan 04, 2005 9:42 pm

Post by TSAMandy »

FYI, I've tracked down the behavior change to between the two pre-release versions built Friday January 28 2005 - 17:26 and Tuesday February 1 2005 - 7:26. If there were more in between, I was unaware of them, so I can't narrow it down any further.

Thanks for any help!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,
Could you give us a page to check, please.

Ruth
TSAMandy
Advanced
Advanced
Posts: 11
Joined: Tue Jan 04, 2005 9:42 pm

Post by TSAMandy »

Actually, I found the tiny little bits of code that are causing the problem: the change from

Code: Select all

>>  if(_MS[65]){
         _brdsty="solid";
         if(_MS[64])_brdsty=_MS[64];
         _brdcol=_MS.offcolor;
         if(_MS[63])_brdcol=_MS[63];
>>       if(_MS[65])_brdwid=_MS[65];
         _brdP=_brdwid+"px "+_brdsty+$$;
         _brd="border:"+_brdP+_brdcol+";"
    }
to

Code: Select all

>>  if(_MS[65]||_MS[65]==0){
         _brdsty="solid";
         if(_MS[64])_brdsty=_MS[64];
         _brdcol=_MS.offcolor;
         if(_MS[63])_brdcol=_MS[63];
>>       if(_MS[65]||_MS[65]==0)_brdwid=_MS[65];
         _brdP=_brdwid+"px "+_brdsty+$$;
         _brd="border:"+_brdP+_brdcol+";"
    }
in mmenudom.js is the culprit. I'm sure those changes were made for a reason, but I never saw any problem without them, and now I am seeing a problem, because there are two places where (what ends up being) _MS[65] gets set to 0 if it isn't set. In other words, if I set a border width in a CSS style and don't set the "borderwidth" property of a menu style, a border with width 0 is added to the style attribute, which clobbers the CSS-defined border.

Any thoughts?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,
I'm sorry, I don't do programs so I can't look at something and say x is the solution.
TSAMandy wrote:suddenly menu and menu item borders, as defined in CSS classes and applied to divs, are being clobbered or ignored entirely
Are you saying the menu is causing a problem with your page css messing up your page div borders or a problem with the css on/off class applied in the menu?


Ruth
TSAMandy
Advanced
Advanced
Posts: 11
Joined: Tue Jan 04, 2005 9:42 pm

Post by TSAMandy »

It's just overriding the definitions of the onclass and offclass CSS styles. Sorry I wasn't clear on that.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

We really need a URL to see what's happening, as Ruth politely requested. Internal menu code is something we, as volunteers, can do nothing about.


You also mentioned "latest" version. Version numbers tell the story - "latest" means nothing, especially at the rate updates have been coming out lately.
John
Post Reply