Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
What I'm trying to do is refer a css class in another css class:
.customClass1{ //some styles } .customClass2{ //some styles } .customClass3{ use customClass1; use customClass2; }
Is this even possible?
.customClass1, .customClass3 {
@extend
You should use a CSS pre-processor like LESS, then you can use Mixins LESS Mixins
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
.customClass1, .customClass3 {@extendwill do what you want.