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
Post a Comment