Warning: Use of undefined constant MDB_STRIPE_SUB_WEBHOOK_SECRET - assumed 'MDB_STRIPE_SUB_WEBHOOK_SECRET' (this will throw an Error in a future version of PHP) in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/mdb-subscriptions/mdb-payments/stripe/class-mdb-stripe-webhook.php on line 26

Warning: Use of undefined constant MDB_PAYPAL_WEBHOOK_ID - assumed 'MDB_PAYPAL_WEBHOOK_ID' (this will throw an Error in a future version of PHP) in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/mdb-subscriptions/mdb-payments/paypal/class-mdb-paypal-webhook.php on line 23

Notice: Undefined index: HTTP_REFERER in /var/www/tst02/wp-content/themes/mdbootstrap4/inc/cookie-setter.php on line 8
Bootstrap Close button - examples & tutorial

Close button

Bootstrap 5 Close button

Close button built with the latest Bootstrap 5. Multiple code examples: for modal, with icon, with alert & many more


Basic example


          <button type="button" class="btn-close" aria-label="Close"></button>
        

Disabled

Add disabled attribute to prevent triggering hover and active states.


          <button type="button" class="btn-close" disabled aria-label="Close"></button>
        

White variant

Add btn-close-white class to change color on dark backround.


          <button type="button" class="btn-close btn-close-white" aria-label="Close"></button>