UPDATE: Messed up with my CSS, as nothing to do with dynamic content.! The answer is very informative though!
I'm creating tags and inserting content with handlebars:
Handlebars code:
{{#each docs}}
<article class="first">
<p class="date">
{{@date}} {{date}}
</p>
<h4 class="header">{{@venue.title}} {{venue.title}}
- {{@venue.city}} {{venue.city}}</h4>
<p class="details">
{{@description}} {{description}}
</p>
</article>
{{/each}}
If I just list articles, the CSS works - but when I let handlebars dynamically create them, it won't apply.
CSS code:
div.gig-items{
article: nth-of-type(n +2);
height: 0;
padding: 0;
}
Is there a way to first create the content and then apply CSS or some more elegant solution?