Title: Adding padding to blog posts
Last modified: August 20, 2016

---

# Adding padding to blog posts

 *  [allieliz](https://wordpress.org/support/users/allieliz/)
 * (@allieliz)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/adding-padding-to-blog-posts/)
 * Hi there- I added a 5px border around my pages. This looks really nice on everything
   but the blog entries, where the border is right up against the text. I would 
   like to add padding to my posts, but don’t know enough about the WordPress page
   structure to do so without risking messing something up!
 * I’ve also noticed that when I visit my site on a mobile device, the borders are
   too close as well. Any insights?
 * I would really appreciate the help!

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

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/adding-padding-to-blog-posts/#post-2691186)
 * Those kinds of spacing issues are controlled by CSS in the style.css file. It’s
   not a big deal to change them (keep a back-up copy before you start messing with
   it) — and you can use [Firebug](http://getfirebug.com) to figure out which CSS
   code to change.
 * If you want specific help, you must post a link to your site so someone can see
   the actual code.
 *  Thread Starter [allieliz](https://wordpress.org/support/users/allieliz/)
 * (@allieliz)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/adding-padding-to-blog-posts/#post-2691190)
 * Shoot, duh! Here’s the link to my site, blog post that needs fixing is the front
   page. The look with the border that I DO like can be seen on the rest of the 
   pages, such as ‘About.’
 * Thank you for your response!
 * [http://www.allielizphotography.com](http://www.allielizphotography.com)
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/adding-padding-to-blog-posts/#post-2691193)
 * This CSS should do it — on line 706:
 *     ```
       .hentry, .no-results {
           border-bottom: 1px solid #DDDDDD;
           margin: 0 0 1.625em;
           position: relative;
       }
       ```
   
 * change the padding to how you want it to look.
 *  Thread Starter [allieliz](https://wordpress.org/support/users/allieliz/)
 * (@allieliz)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/adding-padding-to-blog-posts/#post-2691226)
 * Works like a charm! Thank you so much for your help 🙂
 * Edit: I had asked another question but it seems that I figured it out for now!
 *  [Nandita B.](https://wordpress.org/support/users/nandita-b/)
 * (@nandita-b)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/adding-padding-to-blog-posts/#post-2691413)
 * Hi WPyogi,
 * Can you please help me to adjust the padding for my post.
 * I want to increase the padding of my post from the sidebar on the right side 
   for better readability.
 * My blog link [http://moneyctl.com](http://moneyctl.com)
 * Thanks in advance.

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

The topic ‘Adding padding to blog posts’ is closed to new replies.

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [Nandita B.](https://wordpress.org/support/users/nandita-b/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/adding-padding-to-blog-posts/#post-2691413)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
