css - How can i use hover property with two classes -


i have 2 css classes

    .circle-btn{     }     .circle-btn-medium{     } 

hhowever both classes having own properties. @ hover property want use same background color both.

one solution found use hover property seperatly follows

.circle-btn:hover {     background-color:#39c11e; } .circle-btn-medium:hover {     background-color:#39c11e; } 

so instead of using hover property separately possible use property different classes @ same time can optimize coding?

you can minimize joining 2 class in 1 ..

.circle-btn:hover ,  .circle-btn-medium:hover {     background-color: #39c11e; } 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -