3

Is it possible to reuse classes like that in css:

.aelement {display:block;....}
.aelementhover {color:#fff;....}
.remove a {
        //assign values from class .aelement here
}

.remove a:hover {
        //assign values from class .aelementhover here
}

1 Answer 1

3

Not with vanilla CSS but you can do that sort of thing with less or sass

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.