I have issue in writing zencoding kindly guide

26 views
Skip to first unread message

atranaz

unread,
Dec 16, 2011, 4:05:42 PM12/16/11
to Zen Coding
Hello ,

i m new in zen coding its very impressive but less information i will
collect about this like i have iusse in writing kindly tell me how
can write this code in zencoding

<div class="main">
<div class="1">
<div class="1-1">
<h1></h1>
</div>

</div>
<div class="2">
<h2><div class="h2-2"></div></h2>

</div>

</div>

regards
Zaheer Ahmad

akshay darekar

unread,
Dec 16, 2011, 11:05:33 PM12/16/11
to zen-c...@googlegroups.com
div is not allowed in h2 tags...

akshay darekar

unread,
Dec 16, 2011, 11:38:59 PM12/16/11
to zen-c...@googlegroups.com
lets say you want to put h2 in class2-2:

div.main>(div.1>div.1-1>h1)+div.2>div.h2-2>h2

will give your desired output:
replace underscores with spaces...

<div class="main">
____<div class="1">
________<div class="1-1">
____________<h1></h1>
________</div>
____</div>
____<div class="2">
________<div class="h2-2">
____________<h2></h2>
________</div>
____</div>
</div>

akshay darekar

unread,
Dec 16, 2011, 11:39:41 PM12/16/11
to zen-c...@googlegroups.com
coded in notepad++

Reply all
Reply to author
Forward
0 new messages