Title: Removing strange margin
Last modified: June 4, 2018

---

# Removing strange margin

 *  [camdavgray](https://wordpress.org/support/users/camdavgray/)
 * (@camdavgray)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/removing-strange-margin/)
 * Good day all
 * I’m having trouble removing a strange margin on the right of my site.
 * I’m using the Minima theme which had that margin all around the page. I removed
   the rest of the margins with this additional CSS but the right hand side won’t
   go away:
 * .site {
    margin-right: 0; margin-bottom: 0; margin-top: 0; margin-left: 0; }
 * Can anyone help with this? I suspect it may have something to do with my page
   width but I don’t quite know.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremoving-strange-margin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Pratik Kumar](https://wordpress.org/support/users/pratikthink/)
 * (@pratikthink)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/removing-strange-margin/#post-10359971)
 * add !important
 *     ```
       .site {
       margin-right: 0 !important;
       margin-bottom: 0 !important;
       margin-top: 0 !important;
       margin-left: 0 !important;
       }
       ```
   
 *  [Farook Kholwadia](https://wordpress.org/support/users/judgerookie/)
 * (@judgerookie)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/removing-strange-margin/#post-10361114)
 * perhaps you should remove the code you’ve added
 *     ```
       .site {
       margin-right: 0;
       margin-bottom: 0;
       margin-top: 0;
       margin-left: 0;
       }
       ```
   
 * and focus on the code in style.css as follows:
 *     ```
       @media (min-width: 1200px)
       .site {
           width: 1170px;
           margin: 40px auto;
       }
       ```
   
 * so consider changing to
 *     ```
        width: 100%;
           margin: 0px auto;
       ```
   
 * the 100% width should do it
 *  [Pratik Kumar](https://wordpress.org/support/users/pratikthink/)
 * (@pratikthink)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/removing-strange-margin/#post-10362277)
 *     ```
       @media (min-width: 1200px) {
       .site {
       	width: 100% !important;
       }
       }
       ```
   
 * hello [@camdavgray](https://wordpress.org/support/users/camdavgray/) Let me know
   if this solves your problem.
 *  Thread Starter [camdavgray](https://wordpress.org/support/users/camdavgray/)
 * (@camdavgray)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/removing-strange-margin/#post-10365065)
 * Got it thanks guys!

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

The topic ‘Removing strange margin’ is closed to new replies.

## Tags

 * [additional css](https://wordpress.org/support/topic-tag/additional-css/)
 * [template](https://wordpress.org/support/topic-tag/template/)
 * [width](https://wordpress.org/support/topic-tag/width/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [camdavgray](https://wordpress.org/support/users/camdavgray/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/removing-strange-margin/#post-10365065)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
