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

shar pro asked 7 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.

shar pro answered 7 years ago


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

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


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags