I’m trying to do
li > a
with LessCSS nesting. Is this possible?
I initially thought maybe something like
li {
> a { }
}
But this didn’t work. Any ideas?
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.
It looks like that should work, but try adding an
&just before the combinator:The LESS web site doesn’t mention the use of
&when nesting selectors with other combinators, but then again the documentation there isn’t the best I’ve seen.