I’ve got an unordered list displaying my pages in The Loop. Each list item has a margin-right of 20px and I need to rid the right margin off every fourth item in that list. Now, normally I’d use a class of “last” on the fourth item of the list and set the margin to 0. Since I’m doing this in The Loop how would I achieve something like this?
This is how my code looks at the moment:
< ?php query_posts('post_type=page'); ?>
< ?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>