Title: Remove left and white margin
Last modified: August 11, 2018

---

# Remove left and white margin

 *  [travelwita](https://wordpress.org/support/users/travelwita/)
 * (@travelwita)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/remove-left-and-white-margin/)
 * Hi. Nice to meet you all
    I am using the theme: customizr When I am viewing my
   blog in mobile version, a wide margin appear on the left and right and the content
   looks narrow and long which is not user friendly. Do you know how to remove the
   left and white margin?
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-left-and-white-margin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Nagesh Pai](https://wordpress.org/support/users/nagpai/)
 * (@nagpai)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/remove-left-and-white-margin/#post-10580586)
 * Hi there,
 * I see a left and right margin added even on a desktop view, which seems to be
   coming from a CSS added by kkday-affi-banner.css. You can override it for all
   screensizes by adding this within
 * `WP Admin >> Appearance >> Customizer >> Additional CSS`
 * Add this code at the bottom there:
 *     ```
       body {
       padding: 0px;
       }
       ```
   
 * If you want this spacing removed only for mobile view then you can add :
 *     ```
       @media (max-width: 500px) {
          body {
                 padding: 0px;
               }
       }
       ```
   
 * This should remove the padding (spacing) which is otherwise set to 30px on right
   and left currently.
 *  Thread Starter [travelwita](https://wordpress.org/support/users/travelwita/)
 * (@travelwita)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/remove-left-and-white-margin/#post-10580975)
 * Thanks for your code
    I have tried but it doesn’t work…
 *  Thread Starter [travelwita](https://wordpress.org/support/users/travelwita/)
 * (@travelwita)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/remove-left-and-white-margin/#post-10580984)
 * It could be solved if i removed the kkday banner.
    Thanks~~ Do you know how to
   disable the mobile zoom?
 *  [AddWeb Solution](https://wordpress.org/support/users/addweb-solution-pvt-ltd/)
 * (@addweb-solution-pvt-ltd)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/remove-left-and-white-margin/#post-10613594)
 * Hi,
 * **Solution 1:**
    Add this code in functios.php file
 *     ```
       function my_custom() {
         echo '<meta name="viewport" content="maximum-scale=1.0, user-scalable=no">';
       }
       add_action( 'wp_head', 'my_custom' );
       ```
   
 * **Solution 2:**
    You can disable the zoom by adding user-scalable=”no” on your
   viewport meta.
 * add this code in the header.php file’s head section.
 * `<meta name="viewport" content="maximum-scale=1.0, user-scalable=no">`
 * Here’s a great tutorial from css-tricks.com explaining well the meta viewport
   
   follow this link:- [https://css-tricks.com/snippets/html/responsive-meta-tag/](https://css-tricks.com/snippets/html/responsive-meta-tag/)
 *  [dannyogolo](https://wordpress.org/support/users/dannyogolo/)
 * (@dannyogolo)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/remove-left-and-white-margin/#post-11190670)
 * Dont mean to hijack the post, but I also need to remove the left and right margins
   on my website

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

The topic ‘Remove left and white margin’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [dannyogolo](https://wordpress.org/support/users/dannyogolo/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/remove-left-and-white-margin/#post-11190670)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
