Jump to content

Wordpress CSS help


ezmacc

Recommended Posts

I am having trouble getting the very bottom thumbnail square under the "new videos" section on the home page aligned next to the video directly above it. The website is felonymixtapes.com I am not sure if it is because of a margin or padding being to wide. I have tried everything to figure out what it is but I cant seem to track it down. I would be willing to pay somebody via paypal to help me figure this out.

Link to comment
Share on other sites

I don't if this is done dynamically through wordpress or manually by yourself, but the thumbnail container should be

<div id="post-2-226" class="post right clearfix">

not

<div id="post-2-226" class="post clearfix">

the right class zeros all margins so it will fit beside the previous two thumbnail containers.

Link to comment
Share on other sites

I am pretty sure this is the page that does it.

<?php /* CATEGORY BOX 1 */ ?>    <?php if ( $wp_ellie_cat_box_1 !== 'Select a Category Slug' ) { ?>    <div class="cat-posts">	 <div class="moreposts">	  <a title="<?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_1_title); ?>" href="<?php $cat1_id = get_term_by( 'slug', $wp_ellie_cat_box_1, 'category' ); echo get_category_link( $cat1_id ); ?>"><?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_1_title); ?></a>	 </div>	 <h2 class="feat-title"><span><?php echo stripslashes($wp_ellie_cat_box_1_title); ?></span></h2><?php$count = 1;$my_query = new WP_Query('category_name=' .$wp_ellie_cat_box_1. '&showposts=' .$wp_ellie_num_home_posts_by_cat. '');while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate[$post->ID] = $post->ID; ?><?php if ( $count%3 == 0 ) { ?>	 <div class="post right clearfix" id="post-1-<?php the_ID(); ?>"><?php } else { ?>	 <div class="post clearfix" id="post-1-<?php the_ID(); ?>"><?php } ?>	  <?php include (TEMPLATEPATH . "/post-thumb.php"); ?>	  <?php include (TEMPLATEPATH . "/postinfo.php"); ?>	  <div class="entry">	   <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>	   <?php if ( $wp_ellie_post_content == 'Excerpts' ) { ?>	   <?php the_excerpt(); ?>	   <?php } else { ?>	   <?php the_content(''); ?>	   <?php } ?>	  </div>	  <div class="viewpost">	   <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php _e("View Post", "wp-ellie"); ?></a>	  </div>	 </div><?php $count = $count + 1 ?><?php endwhile; ?>	 <div style="clear:both;"></div>    </div>    <?php } ?>     <?php /* CATEGORY BOX 2 */ ?>    <?php if ( $wp_ellie_cat_box_2 !== 'Select a Category Slug' ) { ?>     <div class="cat-posts">	 <div class="moreposts">	  <a title="<?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_2_title); ?>" href="<?php $cat2_id = get_term_by( 'slug', $wp_ellie_cat_box_2, 'category' ); echo get_category_link( $cat2_id ); ?>"><?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_2_title); ?></a>	 </div>	 <h2 class="feat-title"><span><?php echo stripslashes($wp_ellie_cat_box_2_title); ?></span></h2><?php$count = 1;$my_query = new WP_Query('category_name=' .$wp_ellie_cat_box_2. '&showposts=' .$wp_ellie_num_home_posts_by_cat. '');while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate[$post->ID] = $post->ID; ?><?php if ( $count == 3 ) { ?>	 <div class="post right clearfix" id="post-2-<?php the_ID(); ?>"><?php } else { ?>	 <div class="post clearfix" id="post-2-<?php the_ID(); ?>"><?php } ?>	  <?php include (TEMPLATEPATH . "/post-thumb.php"); ?>	  <?php include (TEMPLATEPATH . "/postinfo.php"); ?>	  <div class="entry">	   <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>	   <?php if ( $wp_ellie_post_content == 'Excerpts' ) { ?>	   <?php the_excerpt(); ?>	   <?php } else { ?>	   <?php the_content(''); ?>	   <?php } ?>	  </div>	  <div class="viewpost">	   <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php _e("View Post", "wp-ellie"); ?></a>	  </div>	 </div><?php $count = $count + 1 ?><?php endwhile; ?>	 <div style="clear:both;"></div>    </div>    <?php } ?>     <?php /* CATEGORY BOX 3 */ ?>    <?php if ( $wp_ellie_cat_box_3 !== 'Select a Category Slug' ) { ?>    <div class="cat-posts">	 <div class="moreposts">	  <a title="<?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_3_title); ?>" href="<?php $cat3_id = get_term_by( 'slug', $wp_ellie_cat_box_3, 'category' ); echo get_category_link( $cat3_id ); ?>"><?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_3_title); ?></a>	 </div>	 <h2 class="feat-title"><span><?php echo stripslashes($wp_ellie_cat_box_3_title); ?></span></h2><?php$count = 1;$my_query = new WP_Query('category_name=' .$wp_ellie_cat_box_3. '&showposts=' .$wp_ellie_num_home_posts_by_cat. '');while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate[$post->ID] = $post->ID; ?><?php if ( $count == 3 ) { ?>	 <div class="post right clearfix" id="post-3-<?php the_ID(); ?>"><?php } else { ?>	 <div class="post clearfix" id="post-3-<?php the_ID(); ?>"><?php } ?>	  <?php include (TEMPLATEPATH . "/post-thumb.php"); ?>	  <?php include (TEMPLATEPATH . "/postinfo.php"); ?>	  <div class="entry">	   <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>	   <?php if ( $wp_ellie_post_content == 'Excerpts' ) { ?>	   <?php the_excerpt(); ?>	   <?php } else { ?>	   <?php the_content(''); ?>	   <?php } ?>	  </div>	  <div class="viewpost">	   <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php _e("View Post", "wp-ellie"); ?></a>	  </div>	 </div><?php $count = $count + 1 ?><?php endwhile; ?>	 <div style="clear:both;"></div>    </div>    <?php } ?>     <?php /* CATEGORY BOX 4 */ ?>    <?php if ( $wp_ellie_cat_box_4 !== 'Select a Category Slug' ) { ?>    <div class="cat-posts">	 <div class="moreposts">	  <a title="<?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_4_title); ?>" href="<?php $cat4_id = get_term_by( 'slug', $wp_ellie_cat_box_4, 'category' ); echo get_category_link( $cat4_id ); ?>"><?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_4_title); ?></a>	 </div>	 <h2 class="feat-title"><span><?php echo stripslashes($wp_ellie_cat_box_4_title); ?></span></h2><?php$count = 1;$my_query = new WP_Query('category_name=' .$wp_ellie_cat_box_4. '&showposts=' .$wp_ellie_num_home_posts_by_cat. '');while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate[$post->ID] = $post->ID; ?><?php if ( $count == 3 ) { ?>	 <div class="post right clearfix" id="post-4-<?php the_ID(); ?>"><?php } else { ?>	 <div class="post clearfix" id="post-4-<?php the_ID(); ?>"><?php } ?>	  <?php include (TEMPLATEPATH . "/post-thumb.php"); ?>	  <?php include (TEMPLATEPATH . "/postinfo.php"); ?>	  <div class="entry">	   <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>	   <?php if ( $wp_ellie_post_content == 'Excerpts' ) { ?>	   <?php the_excerpt(); ?>	   <?php } else { ?>	   <?php the_content(''); ?>	   <?php } ?>	  </div>	  <div class="viewpost">	   <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php _e("View Post", "wp-ellie"); ?></a>	  </div>	 </div><?php $count = $count + 1 ?><?php endwhile; ?>	 <div style="clear:both;"></div>    </div>    <?php } ?>     <?php /* CATEGORY BOX 5 */ ?>    <?php if ( $wp_ellie_cat_box_5 !== 'Select a Category Slug' ) { ?>    <div class="cat-posts">	 <div class="moreposts">	  <a title="<?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_5_title); ?>" href="<?php $cat5_id = get_term_by( 'slug', $wp_ellie_cat_box_5, 'category' ); echo get_category_link( $cat5_id ); ?>"><?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_5_title); ?></a>	 </div>	 <h2 class="feat-title"><span><?php echo stripslashes($wp_ellie_cat_box_5_title); ?></span></h2><?php$count = 1;$my_query = new WP_Query('category_name=' .$wp_ellie_cat_box_5. '&showposts=' .$wp_ellie_num_home_posts_by_cat. '');while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate[$post->ID] = $post->ID; ?><?php if ( $count == 3 ) { ?>	 <div class="post right clearfix" id="post-5-<?php the_ID(); ?>"><?php } else { ?>	 <div class="post clearfix" id="post-5-<?php the_ID(); ?>"><?php } ?>	  <?php include (TEMPLATEPATH . "/post-thumb.php"); ?>	  <?php include (TEMPLATEPATH . "/postinfo.php"); ?>	  <div class="entry">	   <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>	   <?php if ( $wp_ellie_post_content == 'Excerpts' ) { ?>	   <?php the_excerpt(); ?>	   <?php } else { ?>	   <?php the_content(''); ?>	   <?php } ?>	  </div>	  <div class="viewpost">	   <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php _e("View Post", "wp-ellie"); ?></a>	  </div>	 </div><?php $count = $count + 1 ?><?php endwhile; ?>	 <div style="clear:both;"></div>    </div>    <?php } ?>    <?php /* CATEGORY BOX 6 */ ?>    <?php if ( $wp_ellie_cat_box_6 !== 'Select a Category Slug' ) { ?>    <div class="cat-posts">	 <div class="moreposts">	  <a title="<?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_6_title); ?>" href="<?php $cat6_id = get_term_by( 'slug', $wp_ellie_cat_box_6, 'category' ); echo get_category_link( $cat6_id ); ?>"><?php _e("More from", "wp-ellie"); ?> <?php echo stripslashes($wp_ellie_cat_box_6_title); ?></a>	 </div>	 <h2 class="feat-title"><span><?php echo stripslashes($wp_ellie_cat_box_6_title); ?></span></h2><?php$count = 1;$my_query = new WP_Query('category_name=' .$wp_ellie_cat_box_6. '&showposts=' .$wp_ellie_num_home_posts_by_cat. '');while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate[$post->ID] = $post->ID; ?><?php if ( $count == 3 ) { ?>	 <div class="post right clearfix" id="post-6-<?php the_ID(); ?>"><?php } else { ?>	 <div class="post clearfix" id="post-6-<?php the_ID(); ?>"><?php } ?>	  <?php include (TEMPLATEPATH . "/post-thumb.php"); ?>	  <?php include (TEMPLATEPATH . "/postinfo.php"); ?>	  <div class="entry">	   <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>	   <?php if ( $wp_ellie_post_content == 'Excerpts' ) { ?>	   <?php the_excerpt(); ?>	   <?php } else { ?>	   <?php the_content(''); ?>	   <?php } ?>	  </div>	  <div class="viewpost">	   <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php _e("View Post", "wp-ellie"); ?></a>	  </div>	 </div><?php $count = $count + 1 ?><?php endwhile; ?>	 <div style="clear:both;"></div>    </div>    <?php } ?>     <?php /* OTHER RECENT ARTICLES */ ?>    <?php if ( $wp_ellie_other_articles == yes ) { ?>    <div class="cat-posts-stacked">	 <h2 class="feat-title"><span><?php _e("Other Recent Articles", "wp-ellie"); ?></span></h2><?php$count = 1;if (have_posts()) : while (have_posts()) : the_post();if ( $post->ID == $do_not_duplicate[$post->ID] ) continue; ?>	 <div class="post clearfix" id="post-main-<?php the_ID(); ?>">	  <div class="entry">	   <?php include (TEMPLATEPATH . "/post-thumb.php"); ?>	   <h3 class="post-title"><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php the_title(); ?></a></h3>	   <?php include (TEMPLATEPATH . "/postinfo.php"); ?>	   <?php if ( $wp_ellie_post_content == 'Excerpts' ) { ?>	   <?php the_excerpt(); ?>	   <?php } else { ?>	   <?php the_content(''); ?>	   <?php } ?>	  </div>	  <div class="viewpost">	   <a href="<?php the_permalink() ?>" rel="<?php _e("bookmark", "wp-ellie"); ?>" title="<?php _e("Permanent Link to", "wp-ellie"); ?> <?php the_title(); ?>"><?php _e("View Post", "wp-ellie"); ?></a>	  </div>	  <div style="clear:both;"></div>	 </div><?php $count = $count + 1 ?><?php endwhile; endif; ?>	 <div style="clear:both;"></div>    </div>    <select class="index2" name="archive-dropdown" onchange='document.location.href=this.options[this.selectedIndex].value;'>	 <option value=""><?php echo attribute_escape(__('archives')); ?></option>	 <?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?>    </select>      <?php } ?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...