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:55

paddingleft, paddingright


Poster: MUTU
Dated: Wednesday February 2 2005 - 8:51:54 GMT

paddingleft and paddingright

I want to have a horizontal menu with items having more padding to the left and right than the top and bottom. padding puts equal padding all around, it seems.


Poster: kevin3442
Dated: Wednesday February 2 2005 - 16:57:09 GMT

Hi,

You can use the menu's padding property (in a style or in an item) much as you would the css padding shorthand.

In a style:
Code:
padding="5 15 5 15";

In a menu item:
Code:
aI("text=Item Text;url=whatever.htm;padding=5 15 5 15;");

As in the css shorthand, the order of the values sets padding for top, left, bottom, and right. If you omit the unit of measure (e.g. 5 instead of 5px) then px is the default (as usual). You can use other units of measure instead of px, if you specify the type.

Hope that helps,

Kevin


Poster: MUTU
Dated: Thursday February 3 2005 - 8:11:47 GMT

Thanks Kevin