emmet

Multiplication After Climb-Up - Emmet


How can we multiplicate the upper level tree element in Emmet. I mean, What I want to achieve is:

<div class="row">
    <div class="header"></div>
    <div class="contents"></div>
</div>
<div class="row">
    <div class="header"></div>
    <div class="contents"></div>
</div>
<div class="row">
    <div class="header"></div>
    <div class="contents"></div>
</div>

What I have tried is:

div.row>div.header+div.contents^*4

But unfortunately it doesn't work and outputs only single row. Any help appreciated.


Solution

  • You should simply multiply element that you want to repeat:

    .row*4>.header+.contents