(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    How do I add padding around a top item in the javascript menu buttons?

Return to Recent Questions


Q: How do I add padding around a top item in the javascript menu buttons?

A: You should specify itemPadding parameter in "px".
You should add "px" in your style for subitems:

var menuStyles = [
["menuBackColor=#F2F3F2","menuBorderWidth=0","itemSpacing=1","itemPadding=4px","smOrientation=undefined"],
];

Notice also that you can set multiple value for itemPadding parameter,for example:

itemPadding=4px 10px 4px 10px// top right bottom left






Return to Recent Questions

Related:
46 Fantastic CSS3 Web Page Templates Overview Best 46 Fresh CSS Themes Collection  |  Beautiful JS Page Theme Review  |  Splendid JS Design Maker Overview  |  30+ Top Innovative Software Company Website Template List  |  Perfect Responsive JS Website Templates Review  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | AI Website Builder | AI Website Maker | AI Website Generator | AI website design generator