How add "active" inCarousel?
This is an open discussion with 2 replies, filed under XSLT.
Search
With <xsl:attribute>
you can do that in combination with an <xsl:if>
. For example give the first item the class active
<div class="item"> <xsl:attribute name="class"> <xsl:if test="position()=1">item active</xsl:if> </xsl:attribute> ...
via css is more elegant. use ol/ul element, is semantically correct when you have lists.
Create an account or sign in to comment.
this is html tempalte:
this is my xsl:
how can i add "active" on the first
<div class="item">
?