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.
I have a problem, I need to use one property of a css class in other css class.
.class_a {margin:10px; width: 360px; float: left; color:#ffffff; ...etc...} .class_b { .class_a of margin }
.class_a {margin:10px; width: 360px; float: left; color:#ffffff; ...etc...}
.class_b { .class_a of margin }
use in class_b only margin of class_a
thanks!
class_a
You cannot do this using traditional CSS, you need to use dynamic approach like LESS or SASS
LESS
SASS
LESS Reference
SASS Reference
Add a comment
Your quickest option here might be to find the styles you want with firebug or chrome developer tools and add them to your stylesheet.
Required, but never shown
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.
Explore related questions
See similar questions with these tags.
class_a?