0
Open css rule within a rule is possible?
.Hair { z-index:50; div { position:absolute; } }
4 Antworten
+ 2
Yes. but slightly different syntax
.Hair {
z-index:50;
}
.Hair div {
/*Applies to all div tags inside any tag with class Hair*/
position: absolute;
}
+ 1
If you really want to nest CSS styles, you should look into a CSS preprocessor. They are all roughly the same, but in this case, I would recommend SCSS (a derivative of SASS).
Otherwise, what noname said was absolutely on point.
0
Thanks for the answer bro!
0
Thanks! I will check that.