Question

How can i get this output from zencoding

<div class="span1"><img src="/images/1.png" alt="" /></div>
<div class="span2"><img src="/images/2.png" alt="" /></div>
Was it helpful?

Solution

div.span$*2>img[src=/images/$.png][alt]

produces

<div class="span1"><img src="/images/1.png" alt="" /></div>
<div class="span2"><img src="/images/2.png" alt="" /></div>

See https://code.google.com/p/zen-coding/ for syntax description.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top