Apply css style to child element
css, html
Solution
you can just use `.test input` (which will apply to every input in `<div class="test">`).
Your CSS with `>` only selects direct descendants
Problem
Here is an sample example ``` <html> <head> <style> .test > input { //this is wrong. color:red; } </style> </head> <body> <div class="test"> <div> <input></input> </div> </div> </body> </html> ``` What I want to do is apply a style to input element. How to select a input element. with the help of div's css style name.