Title: adding margin space to content
Last modified: August 31, 2016

---

# adding margin space to content

 *  Resolved [Kruble](https://wordpress.org/support/users/kruble/)
 * (@kruble)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/)
 * I’m using the Lifesytyle child theme with a colored background but white content
   area. All content butts up flush with the left side of the content area, and 
   I’d like to add some space there.
 * I’ve successfully added html code <p style=”padding:20px;”> to one of the pages
   to address this but this didn’t work on a gallery page (I’m using the NextGEN
   gallery plugin).
 *  Is there a way to address this in CSS?
 * The page where I added the html is: [http://www.kevinruble.com/wp/about-the-artist/](http://www.kevinruble.com/wp/about-the-artist/)
 * The gallery page is: [http://www.kevinruble.com/wp/galleries/](http://www.kevinruble.com/wp/galleries/)
 * Thanks!

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

 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973028)
 * Use a [Custom CSS plugin](https://en-ca.wordpress.org/plugins/search.php?q=custom+css)
   for any changes, as when the main theme updates, all the changes you may have
   made to the main theme will be lost.
 * So, please remove the `<p style="padding:20px;">` from where you put it in the
   main theme.
 * After installing the plugin, paste this code in it:
 *     ```
       .site-container {
       	padding-right; 20px;
       	padding-left; 20px;
       }
       ```
   
 *  Thread Starter [Kruble](https://wordpress.org/support/users/kruble/)
 * (@kruble)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973040)
 * Didnt work. I installed the plug-in “TJ Custom CSS”, activated it and inserted
   the code as per the instructions, but nothing changed. Any ideas?
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973069)
 * Let me look…
    Did you remove the <p style=”padding:20px;”> from where you put
   it in the main theme?
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973071)
 * I’m sorry… late nights (0_0)
 * I made and error in the code. This should work…
 *     ```
       .site-container {
       	padding-right: 20px;
       	padding-left: 20px;
       }
       ```
   
 *  Thread Starter [Kruble](https://wordpress.org/support/users/kruble/)
 * (@kruble)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973073)
 * Beautiful! Thank you…Worked like a charm. Now get some sleep!
 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973076)
 * Sleep sounds good, but if everything is okay, then you can mark this thread “
   Resolved”.
    G’night!
 *  Thread Starter [Kruble](https://wordpress.org/support/users/kruble/)
 * (@kruble)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973079)
 * Thanks!

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

The topic ‘adding margin space to content’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Kruble](https://wordpress.org/support/users/kruble/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/adding-margin-space-to-content/#post-6973079)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
