paddingleft, paddingright

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
MUTU
Super Advanced
Super Advanced
Posts: 45
Joined: Wed Jul 21, 2004 10:17 am
Contact:

paddingleft, paddingright

Post by MUTU »

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.
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,

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: Select all

padding="5 15 5 15";
In a menu item:

Code: Select all

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
MUTU
Super Advanced
Super Advanced
Posts: 45
Joined: Wed Jul 21, 2004 10:17 am
Contact:

Post by MUTU »

Thanks Kevin
Post Reply