Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:45

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


Poster: HLCJeffIT
Dated: Tuesday February 3 2004 - 21:48:57 GMT

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


Poster: John
Dated: Tuesday February 3 2004 - 22:04:31 GMT

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:
padding="0 3 0 3";

...or whatever values you need.

Just in case, the values go top, right, bottom, left.

Doesn't work for me...


Poster: konky2000
Dated: Wednesday February 11 2004 - 17:22:21 GMT

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?


Poster: Maz
Dated: Wednesday February 11 2004 - 21:48:27 GMT

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

Re: Doesn't work for me...


Poster: kevin3442
Dated: Thursday February 12 2004 - 6:42:41 GMT

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


Poster: Maz
Dated: Thursday February 12 2004 - 9:28:30 GMT

Kevin,

Did you try with subimages or background images?

maz


Poster: kevin3442
Dated: Thursday February 12 2004 - 20:58:53 GMT

Hi Maz,

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

Kevin