Bootstrap – Close button


Bootstrap – Close Button



”;


This chapter will discuss about Bootstrap close button. Close button is used for dismissing content like modals, alerts, and popovers.


Basic example

  • Use .btn-close for creating a close button. Default styling is customizable.

  • Change Sass variables to change background-image and add text for screen readers using aria-label.