telekb
telekb

Reputation: 1

Use only one of properties of css class in other css class

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 }

use in class_b only margin of class_a

thanks!

Upvotes: 0

Views: 141

Answers (2)

Scott Hillson
Scott Hillson

Reputation: 853

Your quickest option here might be to find the styles you want with firebug or chrome developer tools and add them to your stylesheet.

Upvotes: 1

Mr. Alien
Mr. Alien

Reputation: 157334

You cannot do this using traditional CSS, you need to use dynamic approach like LESS or SASS

LESS Reference

SASS Reference

Upvotes: 1

Related Questions