border issues with IE
border issues with IE
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.
Actually, I found the tiny little bits of code that are causing the problem: the change from
to
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?
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+";"
}
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+";"
}
Any thoughts?
Hi,
I'm sorry, I don't do programs so I can't look at something and say x is the solution.
Ruth
I'm sorry, I don't do programs so I can't look at something and say x is the solution.
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?TSAMandy wrote:suddenly menu and menu item borders, as defined in CSS classes and applied to divs, are being clobbered or ignored entirely
Ruth
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.
You also mentioned "latest" version. Version numbers tell the story - "latest" means nothing, especially at the rate updates have been coming out lately.
John