Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parent selector for zen-coding

Tags:

html

emmet

I just discovered zen-coding.

I have the following snippet of code I want to generate.

<div id="base">
        <div id="header">
            <div id="logo"></div>
        </div>
        <div id="body"></div>
        <div id="footer"></div>         
</div>

Is there a way to do this with one line of zen-code

I know I can write

div#base>div#header>div#logo

this is where I get stuck, cause I don't know, how I can go back and add body and footer divs(siblings of header).

I want to figure out if/how this can be done in one line.

Thanks! :)

like image 824
DMin Avatar asked Feb 27 '11 11:02

DMin


1 Answers

This works for me with ZenCoding for Notepad++

div#base>(div#header>div#logo)+div#body+div#footer
like image 81
Jonathon Bolster Avatar answered Sep 23 '22 01:09

Jonathon Bolster