(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:
Bootstrap Login forms Layout Bootstrap Layout Jquery  |  Bootstrap Row Grid  |  Bootstrap Multiselect Option  |  Bootstrap Media queries Example  |  Bootstrap Modal Popup Form  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. free icon fonts | Free Templates | top free website builder | bootstrap menu | bootstrap navbar examples