Sticky banner is not full width

Hi,

I have a problem with my sticky banner, it is not full width. There are like 20px left on each side. Do you know how to correct this problem? This is the website: http://ad-test.demo-website.nl

Thank you!

Kind Regards,
Marloes Verhofstadt
VisionArt

Comments

  • Hi,

    looks like it's due to your custom css. Please remove custom css responsible for header and then check.
  • Hi,

    I put some css in to align the menu to the center:

    #Top_bar .menu_wrapper {
    text-align: center;
    width: 100%;
    }

    #Header .menu > li {
    display: inline-block;
    float: none;
    }

    #Top_bar .top_bar_left {
    width: 100% !important;
    }

    This is the code that will center the menu, but it also triggers the sticky menu to not show properly.
    Do you have a solution to align the menu and also show a proper working sticky menu?
  • If above css works only for main menu, you supposed to use additional class for the #Top_bar element. So the css should look as below:
    #Top_bar:not(.is-sticky) .menu_wrapper {
        text-align: center;
        width: 100%;
    }

    #Header .menu > li {
        display: inline-block;
        float: none;
    }

    #Top_bar:not(.is-sticky) .top_bar_left {
        width: 100% !important;
    }
  • Ok thanks! It works!
    But it is not possible to align the sticky menu in the center?
    The normal menu aligns in the center and the sticky menu at the left. I want both in the center.
  • Also, te sticky responsive menu isnt working on a tablet? Ipad.
    Does that also have to do with css?
    Thanks!
  • Sticky menu does not work on tablets because is simply incompatible. But to center menu items in sticky header, please use below css:
    #Top_bar.is-sticky .menu_wrapper {
        text-align: center;
        width: 90% !important;
    }
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.