Tutorialsplane

Bootstrap change button color


Bootstrap change button color: We sometimes need to customize the bootstrap colors button color or sometimes we need to change some other styles. All these can be done very easily if you go to the thing in proper manner. For this override the bootstrap’s default classes css. Here we are going to explain how to override the bootstrap’s default classes to change the style as per our need.


Bootstrap change button color

Here is a simple example of changing the background color.

Bootstrap change button color

.btn-danger { border-color: #E85757; background-color: #FDA2A2; color:#FFF;}

.btn-danger:hover { border-color: #FC0D0D; background-color: #D20606; }

Add this class to change the behavior of danger button.