I’m trying to set a separate style (through CSS) for the first entry on a page vs. the rest of the entries on the same page. By entry, I mean posting, blog post, article, or whatever you want to call it. Let me see if I can explain this better:
1st posting - blue background
2nd posting - red background
3rd posting - red background
I’m NOT looking for the CSS code. I know CSS well. I want the entire first post on my page to have a different look, but in my template, the way I’m calling the posts up is the standard longtitle/content. If I use the longtitle/content twice on the template, it obviously just repeats itself. I’ve tried using Ditto, and I’ve come close, but it only partially works on some of the pages.
Here’s a link to my original design:
http://temple.campfiresites.com/
Here’s how I was originally calling up my posts:
<div id="main">
<div id="highlight">
<h1>[*longtitle*]</h1>
[*#content*]
</div>
<h2>[*longtitle*]</h2>
[*#content*]
</div>
So, the first entry gets styled with the CSS ID highlight. I want the rest of the entries to have a normal (unstyled) format. Again, I tried using Ditto but I could get the coding right. Any suggestions? I’m new to MODx, not to CMS’s, but if you tell me to use Ditto/NewsListing/Snippets/Chunks or anything else, I’ll need you to point me in the right direction with the coding.
Thanks!!