17487 Posts in 4473 Topics by 1978 members
|Go to End|
7 October 2008 at 1:57am Last edited: 7 October 2008 7:51am
I'm having some trouble styling a specific element in the navigation.
This is generated:
<li><a href="/subscribe/" title="Go to the Subscribe page" class="link">Subscribe to newsletter</a></li>
How am i able to add more to the class, so i can style it with the CSS files?
Thanks for any help!
7 October 2008 at 2:34am
you could use something like the following: it adds an extra class if the current link has the URL of "subscribe".
<li><a href="$Link" title="Go to the $Title.XML page" class="link <% if URLSegment = subscribe %>subscribe-link<% end_if %>">$MenuTitle</a></li>
7 October 2008 at 7:51am
Works like a charm.
|Go to Top|