Hi there,
I’m trying to create stylish CSS based rows using EE.
The code I have currently reads:
{exp:channel:entries channel="testimonials"}
{switch='<div class="row-rt">||'}
<div class="{switch='col|col|col-last'}">
“
{quote_complete}
”
{title}
{job_title}
</div><!-- /end #col -->
{switch='||</div>'}
{/exp:channel:entries}You can see the result here: http://training.customstudio.co.uk/testimonials
The problem is being created because the second row only has one item in it. This means EE is putting that close div further down the page and throwing out the layout.
I thought EE would be intelligent enough to realise that there’s only one item in that section and close the div there. Maybe it’s me that’s lacking intelligence to get this to work?
This seems to be a common challenge for EE sites I’m designing and building, hopefully someone has some suggestions?
Thanks in advance,
Tom