News list display settings: skipping the most recently published article - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

News list display settings: skipping the most recently published article

  • News list display settings: skipping the most recently published article
  • Hi all.

    In order to change the style of the first news item, I've separated a news list in to two. However, this means that the most recently published article displays twice. Is there a means of starting at the second most recently published article (without tagging or categorising), for the second part of the list?

    Or, is there an entirely more elegant solution to modifying the style of the first item only?

    Thanks,

    Scott
  • This news list creates a UL.  Using CSS you should use:
    .sfnewsList li:first-childfont-weight:bold;
    This will get the first LI this is assuming you have not edit the widget template and changed the class(es)
  • Thanks Jonathan, great idea. For some reason I was thinking we were still in 2007 and first-child wasn't widely supported by the browsers!
  • No worries! Good Luck!
  • Hi Jonathan,

    Thank you for helping and sharing solutions.

    Regards,
    Stefani Tacheva
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items