Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Nesting LESS Reply To: Nesting LESS

#155447
emaildano
Participant

Missed the tag in the first post, oops.

How about this example:

<body class="wrap-up"></body>

body { .wrap-up { background: @lightblue; } }

That doesn’t work. But if I modify the CSS to the following, it works.

body.wrap-up { background: @lightblue; }