I am using Zen coding and I like it.
/ code> will output: How do I apply a class for a specific numbered element? Such as 'Hello', a class called the second 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: with the following abbreviation: ul #navigation> li * 3
& 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;
& lt; Li & gt ;? Add as
one two three
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
Post a Comment