Milonic with Invision - Default Table width 100% errors

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
loz
Beginner
Beginner
Posts: 2
Joined: Wed Aug 03, 2005 8:44 am

Milonic with Invision - Default Table width 100% errors

Post by loz »

Invision power board automatically sizes all tables to 100%

yes, this is annoying but it does it to prevent a few bug's in everyones favourite browser : ie.

http://v2.nissansilvia.com/forums

does anyone know how to set the widths of the menu items so that they dont cover the whole screen... they should be appearing like this :

http://www.nissansilvia.com/forums


I have tried "itemwidth=100" but all that does is make the text wrap at 100px, not size the div's and tables at 100...

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

Post by Ruth »

I do see the problem, but since both pages use the same menu version I'm not sure why it's doing it one place and not the other. It works fine in IE on both sites, but not in Netscape, Firefox etc.

To fix the problem in those browsers set menuwidth="100px"; in the submenus. I'd also set itemwidth to the same width, though menuwidth seems to fix it in NN 7.1 and Firefox.

Code: Select all

with(milonic=new menuname("Forums")){
style=submenuStyle;
margin=7;
menuwidth="200px";
itemwidth="200px";


Ruth
loz
Beginner
Beginner
Posts: 2
Joined: Wed Aug 03, 2005 8:44 am

help!

Post by loz »

hey ruth, thanks for the help : it worked well...

only problem now :

http://v2.nissansilvia.com/includes/top.php

in Mozilla it's sweet, in IE... headaches again... works well for all but the 3rd level flyout's : the alignment still seems to be stuffed...

any help would be greatly appreciated..!
User avatar
Ginocide
Beginner
Beginner
Posts: 6
Joined: Tue Aug 09, 2005 12:08 am

Post by Ginocide »

Are you talking about the arrow in your submenus being right up against the text in IE? If so, check out where the arrow is handled in your style "module":

Code: Select all

subimage="/includes/menu/arrow.gif";
subimagepadding=0;
align="left";
I think the alignment is giving you the headache. Try changing it to "right" or eliminating that line altogether. I don't have an alignment in my menu and it seems that the default is right. If it's too far to the right for you, just play with the subimagepadding (usually anything between 2 and 10 is a good number). Hope this helps. :)
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

It took me forever to find this :oops: I should make sure I always try it with my files first.....

There is something wrong with your Milonic program files, milonic_src.js, mmenudom.js mmenuns4.js. When I look at the page using my program files everything is fine. Perhaps yours got corrupted on upload to your site. Try uploading them again and see if that fixes it.

If that doesn't download the menu again and upload the files from the new download.

As to the align= feature, just to clarify, align and valign apply only to text.

Ruth
Post Reply