0

There is a way to do this in css ?

.main-div {

   .input { ... }
   .select { ... }
   .a { ... }
   .li { ... }
   ....

}
Hayi
  • 6,308
  • 23
  • 73
  • 126

2 Answers2

1

You could use a CSS-preprocessor like LESS or SASS. But there is currently no way to accomplish this in pure CSS.

Hacknightly
  • 5,029
  • 1
  • 25
  • 27
1

You would need a preprocessor language like Sass or LESS. Then you could do exactly that.

EthanK
  • 545
  • 3
  • 15