background images extend beyond the boundaries of the table

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

background images extend beyond the boundaries of the table

Post by cubefree »

Using v5.32 NS7 Win2K

http://cubefree.com/clients/star/dev/star/

The first time I load this page in Netscape 7, the background image goes outside the boundaries of the menu -- even with menuwidth=202 and I've even put itemwidth=202 for all aI()s for the menu. See the table labeled "STAR Points and Tools".

In any case a reload quickly normalizes the table. Any clue as to what would cause that? and fix it?

It spills outside the width by 24px -- I was expecting 16 (2 x the padding // set at 8 ).

FYI... It still happens even if removing links to CSS files.

Thanks!
Last edited by cubefree on Thu Jul 15, 2004 11:08 pm, edited 2 times in total.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I can't figure out what's causing the behavior. It's doing it in Netscape 6, and Firefox also. If you look close what it is doing is beginning to repeat the background, that's why the right border looks darker and wider, it's as if it thinks there is an open space of about 14px it has to fill on the right. Nothing I tried stopped it, changing the padding, putting in margin=0 and so on. I don't know if there is a way to put in a no repeat x code somehow to see if that will stop it [I think it's X, maybe y also :lol: heck that's something to do with math and horizontal and vertical axes, what do I know about math!] Anyway, perhaps Andy will have a look, or one of the guys who has more knowledge of the menu's insides.

I wanted to tell you I really really like that site, I love how the menus function, the star with the different colors and the matching mouseover menus [even with the extra on the right] and then the others that pop up when you mouseover those. Very, very nice.

Ruth
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

Re: background images extend beyond the boundaries of the ta

Post by cubefree »

... reusing an inadvertant reply...

Yep, Andy that fixes it!
Last edited by cubefree on Fri Jul 16, 2004 7:27 pm, edited 1 time in total.
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

For a guess, any chance something is picking up lineheight from body or img from css...

maz
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

The problem is with the way Netscape 7.1 is loading images.

When I add the http://milonic.com/preloadmenuimages.js module it fixes it. The reason for this is due to the fact that the image is already in the cache so the menu knows it's size.

What I can't quite figure out is why it only happens with one menu.

Anyway, adding the preloadmenuimages module will fix things.

Hope this helps
Andy
Post Reply