L & R padding only on horiz. menu - is it possible?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
HLCJeffIT
Beginner
Beginner
Posts: 3
Joined: Tue Feb 03, 2004 10:35 pm

L & R padding only on horiz. menu - is it possible?

Post by HLCJeffIT »

Hi, I want to space out my menu items with a little padding on the left and the right only, not top and bottom. Is this possible and how?

Thanks,
Jeff
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

A Search (handy feature!) would have found this for you, but for 3 bucks the following...

Padding works something like CSS, so you could say...

Code: Select all

padding="0 3 0 3";
...or whatever values you need.

Just in case, the values go top, right, bottom, left.
John
konky2000
Beginner
Beginner
Posts: 5
Joined: Wed Feb 11, 2004 6:13 pm

Doesn't work for me...

Post by konky2000 »

I would have expected the padding shorthand to work, but it doesn't for me.

If I put either:
padding="0px 20px 0px 20px";

or

padding="0 20 0 20";

it simply makes ALL padding 0 or 0px and ignores the other values.

I witness the same behavior in both IE6 and Opera 7.22.

I am using the unregistered version of Milonic 5, maybe that is why it doesn't work for me?
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Registration isn't the issue. Its most likely your browser.

Are you adding the padding to main menu or submenu, do you notice a difference between both?

Do you have subimages or images?

I'm asking these questions because it worked for me in Safari on the main menu, but not in the submenu where I also have images.

This is how I used it:
padding="0 3px 0 1px";

Regards,
maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Re: Doesn't work for me...

Post by kevin3442 »

konky2000 wrote:...If I put either:
padding="0px 20px 0px 20px"; or padding="0 20 0 20"; it simply makes ALL padding 0 or 0px and ignores the other values...
Hmmmmm... I'm puzzled because this approach works well for me and I have used it several times, in various browsers. Where are you putting it? What release of the menu code are you using? Can you post a url to a test page, or post the menu_data.js code?

Kevin
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Kevin,

Did you try with subimages or background images?

maz
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Maz,

"Yes" with subimages (the same syntax works for the subimagepadding property BTW). "No" with background images.

Kevin
Post Reply