I'm feeling a bit frustrated because I expected my code to work and shouldn't have to ask this question.
Currently, I am working with bootstrap and trying to customize the default blue color of the btn btn-primary class to something different.
My HTML snippet looks like this:
<input type="text" class="form-control" placeholder="Search by user name, member type, genre...">
<span class="input-group-btn">
<button class="btn btn-primary" type="button"><i class="fa fa-search" aria-hidden="true"></i></button>
</span>
This is the CSS that I wrote:
.btn btn-primary:hover,
.btn btn-primary:focus,
.btn btn-primary:active,
.btn btn-primary.active {
color: #ffffff;
background-color: pink;
border-color: pink;
}
Despite my efforts, the button still appears as it did before: