Support » Themes and Templates » Unintentional Gallery Triplet (Firefox?)
Unintentional Gallery Triplet (Firefox?)
-
Howdy folks. I am working on a portfolio site and just when I thought everything was working I ran into a random problem that seems to only affect Firefox (randomly). The gallery is made up of excerpts containing a thumbnail that are all float: left. However, sometimes one (or several) become triple their defined size and shoot down their column throwing everything off and generally just acting weird.
To view the problem visit here: http://www.jlecluyseillustrations.com/?page_id=9
Or look at this screenshot: http://dl.dropbox.com/u/173274/hm.png
To display the posts I am using a modified loop that I found on the forums (I am also running Lazy Load, which doesn’t seem to make a difference):
<?php $args=array( 'posts_per_page' => -1, 'orderby' => 'date', 'order' => 'DESC', 'caller_get_posts'=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { $ymdate = ''; while ($my_query->have_posts()) : $my_query->the_post(); $ympost = mysql2date("Y", $post->post_date); if ($ympost < 2009) { $ympost = 'prior'; } if ( $ympost != $ymdate) { $ymdate = $ympost; echo '<div class="title"><h3>' . $ymdate . '</h3></div>'; } ?> <div class="grid post"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>" class="pad"><h3><?php the_title(); ?></h3> <h4><?php the_time('F jS, Y') ?></h4> <?php the_post_thumbnail('thumbnail');?> </a></div> <?php //the_content('Read the rest of this entry »'); endwhile; } //if ($my_query) wp_reset_query(); // Restore global post data stomped by the_post(). ?>
I have tried cleaning up my CSS to no avail. Not sure what there is to be done. Am I right that it only happens in FF though?
-
Start by sorting out the validation errors on the page.
Silly me. Thanks!
- The topic ‘Unintentional Gallery Triplet (Firefox?)’ is closed to new replies.