How to apply a class to the last nav item using xslt
Hi all,
My main navigation uses a divider on the right and i would like to remove this on the last item and im wondering how to apply a class the the last nav item please.
I'd put it on the last <li> - you can easily target the <a> inside it, with CSS, if the styles are to be applied to the link, and you don't have to react to more than one thing...
Like this (I'm throwing the class last-one on here):
How to apply a class to the last nav item using xslt
Hi all,
My main navigation uses a divider on the right and i would like to remove this on the last item and im wondering how to apply a class the the last nav item please.
Here is my code
Where do i neeed to apply the test and the attribute?
Thanks
Paul
Hi Paul,
I'd put it on the last
<li>
- you can easily target the<a>
inside it, with CSS, if the styles are to be applied to the link, and you don't have to react to more than one thing...Like this (I'm throwing the class last-one on here):
/Chriztian
Hi Chriztian,
As always mate spot on! PROBLEM SOLVED :)
Thanks for your help mate.
Paul
is working on a reply...