0

I have 2 buttons that should change the background color on hover. The ghost button does that, because it has got no background color defined, while full button keeps its original color.

I made it work by adding !important to hover and active state background color, but I believe that is just a quick and dirty solution, and there must be a better way?

.btn:hover,
.btn:active {
    background-color: #b05d14; 
}

.btn-full:link,
.btn-full:visited {
    background-color: #e67e22;
    border: 1px solid #e67e22;
    color: #fff;    
}

.btn-ghost:link,
.btn-ghost:visited {
    border: 1px solid #e67e22;
    color: #e67e22;
}
Emka
  • 1

0 Answers0