Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
position it correctly
Old 06-22-2010, 04:26 AM position it correctly
asmalik12's Avatar
Extreme Talker

Posts: 173
Name: Abdullah Saleem
Trades: 0
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
asmalik12 is offline
Reply With Quote
View Public Profile Visit asmalik12's homepage!
 
 
Register now for full access!
Old 06-22-2010, 04:32 AM Re: position it correctly
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0


Stop being lazy lol, its exactly what we did with the gallery block, make the image a little small then give the div a good 5 to 10 pixel padding.
__________________

Please login or register to view this content. Registration is FREE

Learn professional skills from professional people, from $6.50 a month.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Reply     « Reply to position it correctly
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.86328 seconds with 12 queries