We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18816
    • 4 Posts
    Hello,

    I’ve got an unordered list with many list-items like these:


    <ul>
    <li>
    <h2>title</h2>
    <a title="sometitle" href="/index.php?id=11">
    <img src="assets/images/image.png">
    </a>
    </li>
    </ul>

    I want to display the imagelinks in rows of three, but on every third li I don’t want a margin or padding on the right. I’ve been looking for a good solution for a couple of hours now and i thought i’d make a post of this.

    I’d appreciate any help and/or suggestions.

    Thanks!

      • 18816
      • 4 Posts
      oh well i hacked it into wayfinder.

      Here’s the code if somebody wants to know it:

      wayfinder.inc.php

      			//Determine if last item in group
      			if ($counter % 3 == 0) {
      				$docInfo['last'] = 1;
      			} else {
      				$docInfo['last'] = 0;
      			}