Title: Content Margin/Boarder or Padding
Last modified: August 22, 2016

---

# Content Margin/Boarder or Padding

 *  Resolved [SmartRobbie](https://wordpress.org/support/users/smartrobbie/)
 * (@smartrobbie)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/)
 * Hi, wondering if you can help. The content on this site is right to the edge 
   of the screen on the left and the right.
 * [http://raymondneto.com/](http://raymondneto.com/)
 * I tried changing it to this code:
 * `#main {margin: 50px 150px 75px 50px;}`
 * That seemed to work well on majority o the pages, but it changed the content 
   on the home page creating white boarders. What code can I change or enter to 
   fix the margins on content pages, but not change the home page?

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

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/#post-5174241)
 * And which theme do you need help with?
 *  Thread Starter [SmartRobbie](https://wordpress.org/support/users/smartrobbie/)
 * (@smartrobbie)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/#post-5174242)
 * Hi Andrew, not sure working off a site someone else built, looks like a custom
   built theme, no theme in particular.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/#post-5174243)
 * You’re working off the Twenty Twelve theme.
 * You can use classes generated in the `<body>` element to target specific pages,
   e.g.:
 *     ```
       #main {
           margin: 50px 150px 75px 50px;
       }
   
       .home #main {
           margin: 50px 0 0;
       }
       ```
   
 *  Thread Starter [SmartRobbie](https://wordpress.org/support/users/smartrobbie/)
 * (@smartrobbie)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/#post-5174244)
 * Thanks, tried that just then, but seems to have a white boarder on the left and
   the right on the home page. – see it live now: [http://raymondneto.com/](http://raymondneto.com/)
 * any other suggestions?
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/#post-5174245)
 * Try it again with my updated code
 *  Thread Starter [SmartRobbie](https://wordpress.org/support/users/smartrobbie/)
 * (@smartrobbie)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/#post-5174246)
 * Perfect! Thank you very much!

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

The topic ‘Content Margin/Boarder or Padding’ is closed to new replies.

## Tags

 * [boarder](https://wordpress.org/support/topic-tag/boarder/)
 * [content pages](https://wordpress.org/support/topic-tag/content-pages/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)
 * [padding](https://wordpress.org/support/topic-tag/padding/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [SmartRobbie](https://wordpress.org/support/users/smartrobbie/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/content-marginboarder-or-padding/#post-5174246)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
