I am facing a positioning problem with my ExpressionEngine. If you click here, you will see that I am looping elements within the
<div id="services-container">
. The loop works fine on the first row, but misaligns on the second row. I have tried using the switch=""
tag to assign individual classes for each loop as shown below:
{exp:channel:entries channel="services" dynamic="no" sort="asc|desc"}
<div id="services-container" class="{switch='1|2|3|4|5|6'}">
<div class="service-content">
<img src="{service_image}" alt="banner" alt="{alt}" class="service-banner">
<p>{service_head_line}</p>
{service_listed_items}
<ul class="service-credentials">
<li>{service_list_1}</li>
<li>{service_list_2}</li>
<li>{service_list_3}</li>
</ul>
<ul class="service-credentials">
<li>{service_list_4}</li>
<li>{service_list_5}</li>
<li>{service_list_6}</li>
</ul>
<a href="#">View related projects »</a>
{/service_listed_items}
</div><!--service-content-->
</div><!--SERVICES CONTAINER-->
{/exp:channel:entries}
However, when I try to target these classes in my stylesheet, nothing seems to be happening. Can anyone help me figure out what I might be doing wrong?