Twenty Twelve: Adding separator line between posts
-
Hello!
I’m using Twenty Twelve and I can’t get the inserted separator to look nice. On the homepage, I have thumbnails and excerpts.Problem: The line is there, but it’s position of it is not fixed. So, the line apperars in different places depending on how much text I have in the excerpt. Sometimes it’s perfect, sometimes it’s directly under the excerpt text and sometimes it’s way under it, creating a big white space between the posts.
What I have done: Here it is
<?php if ( is_search() || is_author() || is_home() || is_tag() ) : // Only display Excerpts for Search ?> <div class="entry-summary"> <?php if ( has_post_thumbnail()) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?> </a> <div id="linje"> <?php endif; ?>
.
As you can see, I inserted a “div” above the php endif.And this is the code in my style.css
#linje {border-bottom:1px dotted black; padding-bottom:20%;}
Do you have any ideas? And yes, I use a child theme ??
- The topic ‘Twenty Twelve: Adding separator line between posts’ is closed to new replies.