Title: borders between posts
Last modified: August 30, 2016

---

# borders between posts

 *  [mila900](https://wordpress.org/support/users/mila900/)
 * (@mila900)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/borders-between-posts/)
 * How to make a border between posts on page blog. I wrote this code in main.css
 *     ```
       .post
        {
               border-bottom: 1px solid #ccc;
              }
       ```
   
 * There are borders between posts, but also there are borders at the end of post
   when I open link of it. I need borders only on page “blog” , not on pages with
   post.
 * I tired do it with class
 *     ```
       .post,
       p.blog {
               border-bottom: 1px solid #ccc;
               border-style: none;
        }
       ```
   
 * I write class in posts
    <p class=”blog”> here text </p>/ but there are no borders
   on blog between posts and on page with post, when I open it.
 *  How shall I do correcly ?
    Sorry I can write link for my site. It doesn’t work
   yet.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [mila900](https://wordpress.org/support/users/mila900/)
 * (@mila900)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/borders-between-posts/#post-6360547)
 * I have found this file. I am trying now to put simple class
 *     ```
       .brd {
   
               border-bottom: 1px solid #ccc;
       }
       ```
   
 * there, but can’t understand where.
 *     ```
       <?php get_header(); ?>
   
       		<div class="column-left">
   
       			<h1>
       				<?php if (is_category()) { ?>
       						<?php _e("Posts Categorized", "site5framework"); ?> / <span><?php single_cat_title(); ?></span>
       				<?php } elseif (is_tag()) { ?>
       						<?php _e("Posts Tagged", "site5framework"); ?> / <span><?php single_cat_title(); ?></span>
       				<?php } elseif (is_author()) { ?>
       						<?php _e("Posts By", "site5framework"); ?> / <span><?php the_author_meta('display_name', $post->post_author) ?> </span>
       				<?php } elseif (is_day()) { ?>
       						<?php _e("Daily Archives", "site5framework"); ?> / <span><?php the_time('l, F j, Y'); ?></span>
       				<?php } elseif (is_month()) { ?>
       				    	<?php _e("Monthly Archives", "site5framework"); ?> / <span><?php the_time('F Y'); ?></span>
       				<?php } elseif (is_year()) { ?>
       				    	<?php _e("Yearly Archives", "site5framework"); ?> / <span><?php the_time('Y'); ?></span>
       				<?php } elseif (is_Search()) { ?>
       				    	<?php _e("Search Results", "site5framework"); ?> / <span><?php echo esc_attr(get_search_query()); ?></span>
       				<?php } else { ?>
       						<?php the_title() ?>
       				<?php } ?>
       			</h1>
   
       			<?php
       			// WP 3.0 PAGED BUG FIX
       			if ( get_query_var('paged') )
       			$paged = get_query_var('paged');
       			elseif ( get_query_var('page') )
       			$paged = get_query_var('page');
       			else
       			$paged = 1;
   
       			$args = array(
       			'post_type' => 'post',
       			'paged' => $paged );
   
       			query_posts($args);
       			?>
       			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
   
       			 <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
   
       				<?php if(has_post_thumbnail()): the_post_thumbnail('thumbnail', array('class'=>'blog-thumb')); ?><?php endif; ?>
   
       				 <header>
       					<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
   
       					 <div class="meta">
       						<?php echo get_the_date(); ?> | <?php the_category(', '); ?> | <?php _e('by','site5framework') ?> <?php the_author(); ?>
       					</div>
       				</header></div>
   
       				 <?php the_excerpt(); ?>
   
       			</article>
   
       			<?php endwhile; ?>
   
       			<!-- begin #pagination -->
       				<?php if (function_exists("emm_paginate")) {
       						emm_paginate();
       					 } else { ?>
       				<div class="navigation">
       			        <div class="alignleft"><?php next_posts_link('Older') ?></div>
       			        <div class="alignright"><?php previous_posts_link('Newer') ?></div>
       			    </div>
       		    <?php } ?>
       		    <!-- end #pagination -->
   
       			<?php endif;?>
   
       			<?php wp_reset_query(); ?>
   
       		</div>
   
       		<div class="column-right">
       		<?php get_sidebar(); ?>
       		</div>
   
       <?php get_footer(); ?>
       ```
   
 *  Thread Starter [mila900](https://wordpress.org/support/users/mila900/)
 * (@mila900)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/borders-between-posts/#post-6360553)
 * oh, I did it

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘borders between posts’ is closed to new replies.

## Tags

 * [border](https://wordpress.org/support/topic-tag/border/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [separator](https://wordpress.org/support/topic-tag/separator/)

 * 2 replies
 * 1 participant
 * Last reply from: [mila900](https://wordpress.org/support/users/mila900/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/borders-between-posts/#post-6360553)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
