(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 Buttons Group Top Mindblowing HTML Image Slideshow Ideas  |  Bootstrap Table Template  |  Best 18 Landing Page Bootstrap Theme Roundup  |  Bootstrap Alert Colors  |  Bootstrap Pagination Responsive  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. website design software | Mobirise Themes | easy website builder software | formoid.com | css menu maker