Hi,
Could anyone adjust this so that it looks nice, I mean correct padding.
The page at which the code is working : Page
Here is the code which I want to be corrected :
PHP Code:
<div id="col1split">
<h1 class="splitblock"><?php $haveyouread = get_option('stylewp_haveyouread'); echo $haveyouread; ?></h1>
<div class="col1split_left">
<?php $my_query = new WP_Query('showposts=1&offset=1'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<?php if ( get_post_meta($post->ID, 'Image', true) ) { ?>
<div style="background: #ffffff;
border: 1px solid #C8C8C8;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
-khtml-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px; ">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "Image", true); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?> <?php _e('thumbnail'); ?>" align="top" border="0" style="padding: 0px 4px 0px 4px; margin: 10px 0px 0px 0px;width: 183px; height: 110px;"/></a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/default.gif" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" align="top" border="0" style="padding: 0px 4px 0px 4px; margin: 10px 0px 0px 0px;width: 183px; height: 110px;"/></a>
<?php } ?>
<h1 class="splititem"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php the_content_limit(110, ""); ?>
<?php endwhile; ?>
</div>
</div>
<div class="col1split_right">
<?php $my_query = new WP_Query('showposts=1&offset=2'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<?php if ( get_post_meta($post->ID, 'Image', true) ) { ?>
<div style="background: #ffffff;
border: 1px solid #C8C8C8;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
-khtml-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "Image", true); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?> <?php _e('thumbnail'); ?>" align="top" border="0" style="padding: 0px 4px 0px 4px; margin: 10px 0px 0px 0px; width: 183px; height: 110px;"/></a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/default.gif" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" align="top" border="0" style="padding: 0px 4px 0px 4px; margin: 10px 0px 0px 0px; width: 183px; height: 110px;"/></a>
<?php } ?>
<h1 class="splititem"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php the_content_limit(110, ""); ?>
<?php endwhile; ?>
</div>
</div>
</div>
__________________
"Think 100 times before you take a decision, But once that decision is taken, stand by it as one man." - Quaid-e-Azam
|