css3 - In CSS, use CSS of other selector -
can use in 1 css selector specifications of other selector?
lets have 3 classes: c1
, c2
, c3
, , specified c1
,c2
this:
.c1 { font: some-font; } .c2 { font-size: font size; }
and want c3
have attributes of c1
, c2
.
i know can this:
.c1, .c3 { font: some-font; } .c2, .c3 { font-size: font size; } .c3 { font-color: red; }
but not i'm looking for.
is there pure css solution?
i know sass
could that, there other way?
you can apply multiple classes 1 set of styles, example:
.c3, .c1 { font: some-font; } .c3, .c2 { font-size: font size; }
Comments
Post a Comment