emmet - Zen nth element -


I am using Zen coding and I like it.

ul #navigation> li * 3

/ code>

will output:

& Lt; Ul id = "navigation" & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; / Li & gt; & Lt; / Ul & gt;

How do I apply a class for a specific numbered element? Such as 'Hello', a class called the second & lt; Li & gt ;? Add as

In this case you will be given a specific class for the repeating element Can not apply.

However, you can insert specific class names (or any other attribute) by wrapping the text with short name . For example, you can wrap this text:

  one two three   

with the following abbreviation: ul # navigation> gt [Li = class = $ #] * . This will produce the following output:

  & lt; Ul class = "navigation" & gt; & Lt; Li class = "one" & gt; & Lt; / Li & gt; & Lt; Li class = "two" & gt; & Lt; / Li & gt; & Lt; Li class = "three" & gt; & Lt; / Li & gt; & Lt; / Ul & gt; Read more on   



Comments