esmi, it sounds like we could be on the right track.
The only problem is my knowledge of php is quite limited. Do you care to explain how I would do that?
I am using the following code btw.
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="NEW CLASS GOES HERE">
<?php if( get_post_meta($post->ID, "image_link", true) ): ?>
<a href="<?php the_field('image_link'); ?>" target="_blank">
<?php endif; ?>
<?php if( get_post_meta($post->ID, "image", true) ): ?>
<img src="<?php the_field('image'); ?>" border="0" style="float: left;"/>
<?php endif; ?>
<?php if( get_post_meta($post->ID, "image_link", true) ): ?>
</a>
<?php endif; ?>
<div style="width: <?php the_field('text_box_width'); ?>px;">
<h2>
<?php the_title(); ?>
</h2>
<span class="date">
<?php the_time( 'M j y' ); ?>
| </span><span class="author">
<?php the_author(); ?>
</span>
<?php the_content(); ?>
</div>
</div>
<?php endwhile; /* rewind or continue if all posts have been fetched */ ?>
<?php endif; ?>