Skip to content
Related Articles

Related Articles

Bulma Dropdown Menu

View Discussion
Improve Article
Save Article
  • Last Updated : 09 Feb, 2022

Bulma is a free and open-source CSS framework used to build beautiful and responsive websites. The Bulma Dropdown menu is a list that displays various options when the user interacts with the menu.

This interaction takes place usually when the user clicks or hovers on the menu. It is important to have an interactive dropdown menu as it makes your website look better. The Bulma Dropdown menu is easy to use and highly interactive. There are a few dropdown elements used in the Bulma framework in order to create a Dropdown menu.

Bulma Dropdown Menu Classes:

  • dropdown: It is the class for the main container that contains the dropdown button and the dropdown menu.
    • dropdown-trigger: It is the class for the container that contains the button
    • dropdown-menu: It is the class for the menu that can be toggled. It is not visible by default.
      • dropdown-content: It is the class that specifies the dropdown box with a white background.
        • dropdown-item: It is the class for every item of the dropdown.
        • dropdown-divider: It is the class for the horizontal line that divides the dropdown items.


<div class="dropdown">
    <div class="dropdown-trigger">
       <button class="button"> ....</button>
    <div class="dropdown-menu">
        <div class="dropdown-content">
            <a class="dropdown-item"> Item 1...</a>
            <a class="dropdown-item">Item 2...</a>

Example: The below example shows the use of dropdown menu classes in Bulma.


<!DOCTYPE html>
    <title>Bulma Dropdown Menu</title>
    <link rel='stylesheet'
    <script src=
<body class="has-text-centered">
    <h3 class="is-size-2 has-text-success">
    <b>Bulma Dropdown menu</b>
     <section class="section">
         <div class="container">         
            <div class="dropdown">
               <div class="dropdown-trigger">
                  <button class="button"
                     <span>Football Players</span>
                     <span class="icon is-small">
                        <i class="fa fa-angle-down"
               <div class="dropdown-menu"
                  <div class="dropdown-content">
                     <a href="#" class="dropdown-item">
                     <a href="#" class="dropdown-item is-active">
                     <a href="#" class="dropdown-item ">
                     <a href="#" class="dropdown-item">
                     <hr class="dropdown-divider">
                     <a href="#" class="dropdown-item">
               document.addEventListener('DOMContentLoaded', function () {
                  var dropdown = document.querySelector('.dropdown');
                  dropdown.addEventListener('click', function(event) {


Bulma Dropdown menu

This dropdown menu consists of additional modifiers in the Bulma framework. Following are some of the additional modifiers that can be very useful on our website.

  • is-active : This modifier will be highlighted all the time. In the above program, the item named Messi uses the is-active modifier.
  • is-hover: When the user hovers on the menu, the dropdown will automatically display its list.
  • is-right: The is-right modifier can be used in order to right-align the dropdown menu.
  • is-up: This modifier can be used when we want to put the dropdown menu above the dropdown button.


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!