2011.09.13
Zen Coding
I've fallen hopelessly in love with Zen Coding (watch this video). But there is one thing that is bothering me. Does anyone know the syntax to produce the following:
<div>
<div>
<p></p>
</div>
<ul>
<li></li>
</ul>
</div>
If I use 'div>div>p+ul>li' then my UL ends up inside the second div, after the P tag, which is what I would expect. But it's not what I want.
EDIT: Nevermind, I figured it out:
div>(div>p)+(ul>li)
Strictly I could omit the parentheses from the second half of the string (the UL) but I think it looks neater and visually creates a distinct separation.
programming
Witty rejoinders
| (never published) | |
| http:// | |
| Captcha: | |
