Title: Add Right Margin to CSS
Last modified: August 30, 2016

---

# Add Right Margin to CSS

 *  [eugeniepence](https://wordpress.org/support/users/eugeniepence/)
 * (@eugeniepence)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/add-right-margin-to-css/)
 * I am trying to center my social links over the sidebar. How do I add Right Margin
   to custom CSS? I have no idea about code, so any help would greatly be appreciated.
 * capefearmobilenotary.com

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

 *  [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/add-right-margin-to-css/#post-6349153)
 * Here’s the css below I will give you links on how to figure it out yourself in
   the future.
    Adjust the px to what you want.
 *     ```
       .main-navigation ul {
       margin-right: 85px;
       }
       ```
   
 *  [David_G](https://wordpress.org/support/users/questas_admin/)
 * (@questas_admin)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/add-right-margin-to-css/#post-6349157)
 * Check this out for finding your css selectors and customizing your site.
 * [http://themesandco.com/snippet/firebug-best-spent-6-minutes/](http://themesandco.com/snippet/firebug-best-spent-6-minutes/)
   
   [http://getfirebug.com](http://getfirebug.com)

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

The topic ‘Add Right Margin to CSS’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [David_G](https://wordpress.org/support/users/questas_admin/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/add-right-margin-to-css/#post-6349157)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
