Here is what I have so far: http://jsfiddle.net/6j4cT/3/
Sorry for not pasting the code as there is too much to add into this post.
Firstly the JQuery I have so far is not selecting first LI within the “news-items” and adding the class “active”.
Also, if anyone would like to rewrite my code to a cleaner format you are welcome to do so.
Many thanks!
Just give the class name
activeto the firstlielement:Reference: jsFiddle
Status Update: jsFiddle Rev 2
You can also add the class using jQuery as such:
Re-Revised via Message Request: jsFiddle Rev 4
The new addition, per your message comments, will set
display:list-itemfor only the first item while settingdisplay:nonefor the remainder of the items since that has been sliced off via jQuery.slice()method.