• Resolved martin36

    (@martin36)


    I want to put the generated templates inside a container element. For example I have the following code for each item, which represents a contact card:
    `
    <div class=”column col2 contact-card”>
    <div class=”column col2″>
    <b class=”contact-name”>{@namn}</b>
    <p class=”contact-role”>{@roll}</p>
    <p class=”contact-phone”>{@telefon}</p>
    <p class=”contact-email”>{@e-post}</p>
    </div>
    <div class=”column col2″>
    <img class=”contact-img” src=”{@bild._src}” />
    </div>
    </div>
    `
    I want these cards to be placed inside a <div class="row"> in order for them to be aligned correctly.

    Is it possible to do that?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Put templates inside an HTML element’ is closed to new replies.