Fixed header on mobile

I want to have a fixed header on mobile. I foud this code in Forum:

@media (max-width: 979px) {
.site {
margin-top: 69px;
}
.x-navbar {
position: fixed !important;
width: 100%;
left: 0;
top: 0;
right: 0;
}
}
Is this right for my website (www.bargwillem.nl) and where do I put it?

I put the code in the global CSS and it works fine! Sorry for my question. I need more confidence! I will get there, it just takes a while!

Hello Marjan,

Not an issue. We are glad that you figured it out. :slight_smile:

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.