Title: How to Remove Space Between Posts
Last modified: August 19, 2016

---

# How to Remove Space Between Posts

 *  Resolved [simrn](https://wordpress.org/support/users/simrn/)
 * (@simrn)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/)
 * This is link to my blog: [http://www.allsmsmessages.com/blog/](http://www.allsmsmessages.com/blog/)
   on home page and archive pages i.e. [http://www.allsmsmessages.com/blog/category/greetings/new-year](http://www.allsmsmessages.com/blog/category/greetings/new-year)..
   there’s a visible space between the latest post and previous posts. How to decrease
   the unnecessary space.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/#post-1839682)
 * Try removing `<div style="clear: both;"></div>` from the Loop within your theme’s
   template files.
 *  Thread Starter [simrn](https://wordpress.org/support/users/simrn/)
 * (@simrn)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/#post-1839937)
 * which template files? I mean is it index.php, functions.php, page.php, or what?
   
   well, i tried to find the <div style=”clear: both;”></div> in all of the above
   php files but i couldnt 🙁
 * help!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/#post-1839939)
 * it can possibly be fixed by adding `overflow:hidden;` the the style of `.entry`
   in style.css of your theme:
 *     ```
       .entry {
       	padding: 10px 0 2px 0px;
       	border-top: 1px solid #CCC;
       	line-height: 1.4em;
       	margin: 0 170px 25px 0;
       overflow:hidden;
       	}
       ```
   
 *  Thread Starter [simrn](https://wordpress.org/support/users/simrn/)
 * (@simrn)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/#post-1839966)
 * it resolves the prob on archive and category page, but home page now shows too
   much blank space before first post [http://www.allsmsmessages.com/blog/](http://www.allsmsmessages.com/blog/)….
   i guess need to add more code to fix this on home page too?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/#post-1839972)
 * add this new style after the style of #wrap:
 *     ```
       #wrap:after {
           content: ".";
           display: block;
           height: 0;
           clear: both;
           visibility: hidden;
       }
       ```
   
 * and add a ‘float:left;’ to the style of #main:
 *     ```
       #main {
       	width: 800px;	margin: 12px 20px 0 170px;
       	padding-bottom: 50px;
       float:left;
       	}
       ```
   
 * [http://www.positioniseverything.net/easyclearing.html](http://www.positioniseverything.net/easyclearing.html)
 * this seems to solve the front page display problem;
 *  Thread Starter [simrn](https://wordpress.org/support/users/simrn/)
 * (@simrn)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/#post-1839984)
 * GREAT … my problem solved.
    Thank you so much alchymyth. Prayers and Peace. Thread
   closed.

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

The topic ‘How to Remove Space Between Posts’ is closed to new replies.

 * 6 replies
 * 3 participants
 * Last reply from: [simrn](https://wordpress.org/support/users/simrn/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/how-to-remove-space-between-posts/#post-1839984)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
