If I have a dozen CSS selectors and want to assign :hover properties to all of them, I'm used to it:
selector, selector2, someOtherSelector, someSelector div { //some properties } selector:hover, selector2:hover, someOtherSelector:hover, someSelector div:hover { //some properties }
Input :hover four times seems redundant. Is there a way to group type selectors
(selector, selector2, someOtherSelector, someSelector div):hover { //some properties }
instead
Isaac lubow
source share