There are a few ways to do this, you can parenthesize elements with child selectors or use the parent operator (^
):
1. Parens ()
A nice way to avoid breaking the "flow" of you zen coding snippet. See this SO post.
(div.br-title > span) + (div.br-content > cfoutput)
Complete Snippet:
div.home-page.container.clearfix.news-article > div.box-round > div.cn.tl + div.cn.tr + (div.br-title > span) + (div.br-content > cfoutput)
2. Parent Operator ^
Another option, as Sergey (he's the creator of Emmet, so you can probably trust him ;) ) pointed out in the comments.
.br-title>span^.br-content>cfoutput
Complete Snippet:
.home-page.container.clearfix.news-article>.box-round>.cn.tl+.cn.tr+.br-title>span^.br-content>cfoutput
An additional note
There's no need to include div
before your .class
names, you can just use .classname
and Emmet will include a div (you do need to specify for other elements). A more concise Zen Coding snippet would be:
.home-page.container.clearfix.news-article>.box-round>.cn.tl+.cn.tr+(.br-title>span)+(.br-content>cfoutput)