This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

Resolved 10 replies technicalthemetheme-vantage
10 years ago · Last reply by Alex S 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

10
  1. Alex S Staff 10 years, 8 days ago

    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. dlechner 10 years, 8 days ago

    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. Alex S Staff 10 years, 8 days ago

    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. dlechner 10 years, 8 days ago

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

  5. Alex S Staff 10 years, 8 days ago

    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. Alex S Staff 10 years, 8 days ago

    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. dlechner 10 years, 8 days ago

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

  8. Alex S Staff 10 years, 8 days ago

    Hi Dlechner,

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

  9. dlechner 10 years, 8 days ago

    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. Alex S Staff 10 years, 8 days ago

    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.

Have a different question or issue?

Start New Thread