Title: Changing margins
Last modified: August 30, 2018

---

# Changing margins

 *  Resolved [mmesford](https://wordpress.org/support/users/mmesford/)
 * (@mmesford)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/changing-margins-3/)
 * Another CSS question:
 * The text in my sidebar is jammed up against the text in my post. There’s lots
   of white space on the _right_ side of the sidebar. How can I increase the margin,
   or the padding, on the left side of the sidebar? I’ve looked at it using Safari’s
   Element Inspector but it’s all one div.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchanging-margins-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [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/changing-margins-3/#post-10654799)
 * Hello [@mmesford](https://wordpress.org/support/users/mmesford/),
 * In right side , add custom class `.right-sidebar` beside the class `.widget-area`
   to apply custom style on targeted area. And apply padding in Appearance -> Customize-
   > Additional CSS for the class `.right-sidebar`as shown below
 *     ```
       .right-sidebar {
         padding-left: 50px;
       }
       ```
   
 * Hope this will help in resolve your query
    Thanks.
 *  Thread Starter [mmesford](https://wordpress.org/support/users/mmesford/)
 * (@mmesford)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/changing-margins-3/#post-10667980)
 * Hi AddWeb, thanks for the reply. I’ve added the additional CSS as noted but I
   don’t understand where to add the custom class. I’m using a child version of 
   the Quark theme. I looked at the style.css file in the parent theme but it’s 
   not clear to me where to add the custom class as you suggest.
 * Mike
 *  [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/changing-margins-3/#post-10673647)
 * Well, when you are using a child theme, you can simply overwrite any CSS in custom.
   css of a child theme.
    custom.css is the correct place to add any additional 
   styles other than provided by the theme.
 * Thanks.
 *  Theme Author [Anthony Hortin](https://wordpress.org/support/users/ahortin/)
 * (@ahortin)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/changing-margins-3/#post-10676007)
 * Thanks for your help [@addweb-solution-pvt-ltd](https://wordpress.org/support/users/addweb-solution-pvt-ltd/).
 * [@mmesford](https://wordpress.org/support/users/mmesford/), if you’re using a
   child theme, then it should have it’s own style.css file, so you can add any 
   new styles that you want to override, in that file.
 * Alternatively, you can also add new styles into the Custom CSS panel in the Customizer.
 *  Thread Starter [mmesford](https://wordpress.org/support/users/mmesford/)
 * (@mmesford)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/changing-margins-3/#post-10679334)
 * Hi again,
 * Sorry, but I’m still confused.
 * > In right side , add custom class .right-sidebar beside the class .widget-area
   > to apply custom style on targeted area.
 * I don’t understand where this is. I don’t have the option of editing anything
   on the right side. And I’ve already added the suggested CSS in the Custom CSS
   box so I’m unclear why I need to add it elsewhere. There is no custom.css file
   in either the parent theme or the child. The child’s style.css is blank, of course,
   but as I understand it all the code from the parent’s style.css is included in
   the child and I can override those in my child style.css. But when I look in 
   the parent style.css I don’t see a right-sidebar. I found a home-sidebar and 
   tried using that in the Custom CSS box but no joy. I’m beginning to think I’ve
   got something wrong conceptually, but I’m not sure where to look next.
 *  Theme Author [Anthony Hortin](https://wordpress.org/support/users/ahortin/)
 * (@ahortin)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/changing-margins-3/#post-10858893)
 * It looks like you’ve sorted this out. Let me know if you’re still having issues
   though.
    -  This reply was modified 7 years, 6 months ago by [Anthony Hortin](https://wordpress.org/support/users/ahortin/).

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

The topic ‘Changing margins’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/quark/1.4.1/screenshot.png)
 * Quark
 * [Support Threads](https://wordpress.org/support/theme/quark/)
 * [Active Topics](https://wordpress.org/support/theme/quark/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/quark/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/quark/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [Anthony Hortin](https://wordpress.org/support/users/ahortin/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/changing-margins-3/#post-10858893)
 * Status: resolved