How could I more simply write
#test div, #test span{
....
}
is there something like?
#test [div span]{
....
}
(edit: or is it?
#test{
div span{
....
}
}
nope it isn’t sorry)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use a CSS preprocessor (like LESS, SASS or other) and organize your css in a more structured way, something like
and, if you’re not interested at all at Internet Explorer or Opera support, you could use
:any()selector like soSee also https://developer.mozilla.org/en/CSS/%3A-moz-any
Another possibility is to apply a specific class to all the nested element you’re interested and target those elements via