Frage

If my HTML looks like this:

<div class="purely-aesthetic-wrapper">
    <section>
        …
    </section>
</div>

…is it possible to omit the outside div from the HTML and do something like this (with LESS):

section {
           enclose-with(.purely-aesthetic-wrapper);
         }

Sorry if it's an obvious question but I'm not having much luck finding the answer.

War es hilfreich?

Lösung

Short answer is no, it's not possible.

LESS is css pre-processor and it has nothing to do with HTML/DOM-tree

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top