Home>Support>How do I center the header with no padding around it?

How do I center the header with no padding around it?

By dlechner, 9 years ago. Last reply by Alex S, 9 years ago.
Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

I’m using the Vantage Premium boxed layout and I’ve been trying snipets in the custom css to get rid of padding and to center my logo in the header to no avail. My site is: http://www.whostakingthetrain.com/ Could you please take a look at it and see what I’m doing wrong?

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Dlechner,

    I’ve taken a look at your website and checked the padding. It looks like this issue has been resolved but just to be sure, would you mind letting us know if you still need help? If so, we’ll jump right in. If not, is there anything else I can help you with today?

    By the way; as you’re a Vantage Premium user you’re entitled to priority email support. If you would like to make use of that please follow the instructions found on this page. Please reference this thread.

  2. 9 years, 4 months ago dlechner

    I still need help Alex. It’s centered but there is padding on each side of the logo image that I don’t want to have there. When I change the padding the nav bar pops out.
    Deb

  3. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Dlechner

    I’m very sorry about the misunderstanding. You can change this with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .site-header {
        padding: 0 !important;
    }
    
    .main-navigation {
        margin: 0 !important;
    }
    

    You might also need to install the SiteOrigin CSS Editor.

  4. 9 years, 4 months ago dlechner

    I just did that and the header moved to the left but didn't fill the space.

  5. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Dlechner

    Sorry about that. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .logo {
        float: none !important;    
        text-align: center;
    }
    

    You might also need to install the SiteOrigin CSS Editor.

  6. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Dlechner,

    If you’ve changed your mind and rather have the image full width you can do this by adding the following CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .logo img {
      	width: 100%;
    }
    

    You might also need to install the SiteOrigin CSS Editor.

  7. 9 years, 4 months ago dlechner

    I changed it to "img.logo-NO-height-constrain" and with your changes it worked!!!!

  8. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Dlechner,

    That’s great to hear! Is there anything else I can help you with today?

  9. 9 years, 4 months ago dlechner

    No, thank you, Alex. That does it! I love Vantage Premium. I've used it on about 5 websites so far. Thanks for the great service tonight!
    Deb

  10. 9 years, 4 months ago Alex S
    Hi, I Work Here

    Hi Dlechner,

    That’s great to hear. By the way; as you’re a Vantage Premium user you’re entitled to priority email support. If you would like to make use of that next time please follow the instructions found on this page.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More