I’m trying to show 4 images in a row using an Unordered List from the left edge of the site all the way to the right. the first 3 images, have "margin-right:12px" and the last image has "margin-right:0".
Is there any way I can apply a class to only the 4th image in a row when I have a total of 12 images?
Does the pictures come from Maxigallery or TVs?
You could do something like this in your tpl:
<li>[+imageTv1+]</li> <li>[+imageTv2+]</li> <li>[+imageTv3+]</li> <li class="YO" style="padding-right:-12px;">[+imageTv4+]</li>
Yes!

You want to store the image in TVs assigned the template.
TVs can be understood as extra input fields for the resource.
They are called inside
[*Tv
*] like the default
[*DocumentObjects*]
in templates/chunks/documents BUT for the DYNAMIC ditto tpl:
[+Tv
+] [+Do
+]
http://ditto.modxcms.com/tutorials/creating-a-custom-template.html
http://www.sottwell.com/how-template-variables-work.html
My first tpl example was if the TV’s was using the
image widget
if NOT but
type image you would have to use:
<li><img src="[+myImageTv1+]" alt="" /></li>...