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.CommentedJun 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.
    – George
    CommentedJun 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.

2
  • "Sass", not "SAS". :)
    – user1705630
    CommentedJun 12, 2015 at 16:53
  • I blame spell check... correction made. :)
    – EthanK
    CommentedJun 13, 2015 at 16:26
1

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

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.