1

Is it possible to define "user's" class in css?

fot example:

customClass = div > a

And use it as selector:

.customClass: hover {
  //some styles
}

.customClass > span {
  //some styles
}

2 Answers 2

2

Not with standard CSS.

LESS may have this ability though:

http://lesscss.org/

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

Comments

0

Check out CSS compilers like:

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.