Height of menu buttons in 'material dropdowns' men


Topic: Height of menu buttons in 'material dropdowns' menu

shar pro asked 5 years ago

How do I change the size of the menu buttons in the 'material dropdowns' menu? I understand that I can change the size of the trigger button, but not the size of the menu buttons. I would like to reduce their height.

Bartłomiej Malanowski staff pro premium answered 5 years ago

You can set the padding for .dropdown-item. Example:
.dropdown-item {
    padding:5px 20px;
}

shar pro answered 5 years ago

Thank you for response. This code seems to work for me. .dropdown-item { line-height: 0px; height: 10px; padding-top: 0px; }
Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No