Im having a problem with creatin div inside an ul with li:s. There should be 6 divs inside one li and then a new li should be created. The problem it that the 13:th item is outside the li when looking in IE 7.
Looks like you're using the Runway Gallery as a starting point. I had a bad bit of logic in that that 'ruptures' the UL/LI flow in some instances.
The solution is to update the two xsl:if statements, as Ricky pointed out on the forum some time ago...
<!-- open a row of images --> <xsl:iftest="position() mod $imagesPerRow = 1"> <xsl:value-ofselect="$ulOpen"disable-output-escaping="yes"/> </xsl:if>
and
<!-- close the row of images --> <xsl:iftest="position() mod $imagesPerRow = 0 or position() = last()"> <xsl:value-ofselect="$ulClose"disable-output-escaping="yes"/> </xsl:if>
This also means that the $imagesPerRow variable can
now be set the actual number of images you want. So, change it to 6
instead of 7.
Foreach and ul
Hi!
Im having a problem with creatin div inside an ul with li:s. There should be 6 divs inside one li and then a new li should be created. The problem it that the 13:th item is outside the li when looking in IE 7.
Notice that I had to set the imagesPerRow to 7 and not 6 to make it work. Seems the problem is somewhere there...
Looks like you're using the Runway Gallery as a starting point. I had a bad bit of logic in that that 'ruptures' the UL/LI flow in some instances.
The solution is to update the two xsl:if statements, as Ricky pointed out on the forum some time ago...
and
This also means that the $imagesPerRow variable can now be set the actual number of images you want. So, change it to 6 instead of 7.
cheers,
doug.
Perfect!
Thank you!
is working on a reply...