I’m wanting to use properties from other css classes without having to rewrite the code…I’m not too savvy with css so please forgive me for the simple question.
Is it possible to do something like this or similar to it in css?
.class_a {
background:red;
}
.class_b{
.class_a;
}
The best way (that I know of) to re-use css classes is to decide on the css attributes you want to re-use, and put this in a seperate class, like so:
Then, every time you want to re-use these attributes, you add the class to the html element, with spaces in between different class names, like so: