padding for images

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
chinaski
Beginner
Beginner
Posts: 3
Joined: Fri Jun 04, 2004 5:55 pm
Contact:

padding for images

Post by chinaski »

I found one other post regarding padding and the submenu image. I want to be able to padd the top and bottom of the submenu image but not the right and left.

I am trying to upgrade a menu from version 3 to the new, and am almost finished (making it look like it did before that is).

Problem with the placement of the submenu image: On the old menu it was aligned to the far right, in the middle.

On the new menu it aligns to the top of the menu item, unless I pad it.

Playing with the padding setting works fine: the arrow moves to the middle. But the problem with this is that it also moves away from the right edge of the menu.

Here is a link to the original menu:

http://www.swim.bc.ca/

Here is a link to the upgrade:

http://www.swim.bc.ca/test/menu/menu.htm

Thanks for any help.
It it was a snake it woulda bit me.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

The arrow looks the same on both pages you gave in Netscape 4.79, 6, 7, IE5.5, Firebird.07. OS 98se The only one version 5 looks off in is Opera 6, which was a bad release for Opera. In which browser are you seeing this.
Ruth
chinaski
Beginner
Beginner
Posts: 3
Joined: Fri Jun 04, 2004 5:55 pm
Contact:

Helped myself

Post by chinaski »

I fiddled with the padding property and made it work. Thanks for looking at it.
It it was a snake it woulda bit me.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Could you let us know how you fixed it? It might help someone else. :)

Ruth
chinaski
Beginner
Beginner
Posts: 3
Joined: Fri Jun 04, 2004 5:55 pm
Contact:

Image padding

Post by chinaski »

What I had set in the main style originally:

subimagepadding=7;

What worked better:

subimagepadding="7 0";

Like most things computer related, simple once I figured it out.

Thanks again. Love the menu.
It it was a snake it woulda bit me.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Thanks for taking the time to post your fix. It's appreciated.

Note to all that Opera has already hit with a 7.51 release, very quickly after the 7.5. Wonder what we'll find with this one... :?: :roll:
John
Post Reply