Padding bottom of thumbnail image
-
I have a thumbnail set up next to the excerpt summery text of the posts.
All is well, but underneath the thumb there is a padding/ margin of 7px.
I can’t get rid of it. The crazy thing about it is that when I put text instead of the image code the padding is gone….
I can’t yet put the site online through restrictions, but hopefully someone can help me with this.Image of post with thumbnail & 7px margin or padding
[img] http://foodquest.nl/img1.jpg%5B/img%5DImage of post with text instead of image (no margin or padding)
[img] http://foodquest.nl/img2.jpg%5B/img%5DCode of the loop
[code]
<div id="totaal-post">
<ul class="post-not">- <div id="post-summary">
<?php $thumb = get_post_meta($post->ID, "thumb", true);
if ($thumb != ""){ ?>
<?php the_excerpt(); ?>
<?php } else { ?>
<?php the_content(); ?>
<?php } ?>
</div>
<div class="post-thumbnails"><?php the_post_thumbnail(array(120,120), array('class' => ''));?>
</div><!-- .posts-quick -->
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<?php else : ?>
<?php endif; ?>[/code]
Code of the CSS
[code]
#totaal-post{
border:solid #d4d4d4 1px;
margin-bottom: 20px;
pading: 0;
background: url(images/post_bg.gif) repeat-x left top #f1f1f1;
}.post-not{
list-style: none;
margin: 0px;
padding: 0px;
overflow: hidden;
}.post-thumbnails {
float:left;
width:120px;
background-color:#F66;
text-align:center;
}#post-summary {
width:498px;
padding: 10px;
float:right;
background-color:#FFC;
line-height: 1.3em;
color: 000;
}[/code]
- <div id="post-summary">
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
That you are posting php code indicate you have a self hosted blog. Guess the staff could not figure that out with their “review”.
Your question should be addressed at the WordPress.ORG site: http://wordpress.org/support/ as the answer will be different than for sites hosted here (software works a bit different). Sites on WordPress.COM do not have the ability to edit the php code for security reasons.
More on the difference: http://en.support.wordpress.com/com-vs-org/
- The topic ‘Padding bottom of thumbnail image’ is closed to new replies.