0

There is a way to do this in css ?

.main-div {

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

}
Hayi
  • 6,972
  • 26
  • 80
  • 139

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,109
  • 1
  • 26
  • 27
1

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

EthanK
  • 600
  • 5
  • 17