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
Industrial Strength JavaScript and DHTML Menus
About Us
Testimonials
Contact Us
Our Distinguished Clients
Investing in Non-Profits
Where Are We
Privacy Policy
Software Licensing Agreement
DHTML JavaScript Menu
Product Information
Page Integration
Quick Reference Guides
Embedding Into a Table or DIV
Purchase
