0

There is a way to do this in css ?

.main-div {

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

}
2
  • 3
    You can do something similar with a CSS preprocessor, like SASS or LESS. Commented Jun 12, 2015 at 15:46
  • 1
    What would be the outcome of what you are intending? Perhaps there is a way, just not like that. Commented Jun 12, 2015 at 15:47

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

"Sass", not "SAS". :)
I blame spell check... correction made. :)
1

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.