Is there a way to make my menu span the width of the site? My site has too much padding on the left and right (white space): https://digitalnomadquest.com/
I want to make it more like: https://www.smartpassiveincome.com/
Is there a way to make my menu span the width of the site? My site has too much padding on the left and right (white space): https://digitalnomadquest.com/
I want to make it more like: https://www.smartpassiveincome.com/
Hi Sharon,
Thank you for reaching out to us. This would require custom CSS which is regretfully outside of our support scope, but we will do our best to help you getting started with the customization but we will not be able to implement it.
If you want to keep the logo inline with the menu like in the demo you shared then you can make use of the following code:
@media screen and (min-width: 980px) {
.x-navbar .x-container {
width: 100%;
max-width: 100%;
}
}
If you want the menu to span full width then use this code instead:
@media screen and (min-width: 980px) {
.x-navbar .x-container {
width: 100%;
max-width: 100%;
}
.x-brand {
float: none;
margin: 0 auto;
display: block;
max-width: 300px;
}
.masthead-inline .desktop .x-nav {
display: flex;
float: none;
text-align: center;
}
.masthead-inline .desktop .x-nav > li {
flex: 1;
}
}
Here are some related links for further reading, this could help you in finding and implementing some CSS fixes:
Don’t forget to clear all caches including your browser’s cache after adding the code. Hope this helps!
When I implement it it looks like this:
How do i keep the logo on the left on the same line? Thanks
Hi Sharon,
Actually the logo and menu are set to be inline. This particular situation is a matter of reworking your content (logo and menu) to properly fit them inside the container, making the container fullwidth will not completely resolve the issue, because on small screen laptops the container still won’t be wide enough resulting for the menu to wrap, The following should be considered in these situations:
If that still not enough, you can do the following:
Cheers!
It looks like the menu items are centering though and there is a lot of space between them? Is there any way to fix that? I feel like the logo would be able to be in the same line if that were fixed. I’ll try making the logo a bit smaller though
I made it ridiculously small (even tested it at 5 px) and it is still 2 lines
Hey Sharon,
If you use the code in the first suggestion, you should be able to achieve what you require:
The second suggestion was an alternate solution if you needed to span the menu entirely without the logo. So you can only use the following code:
@media screen and (min-width: 980px) {
.x-navbar .x-container {
width: 100%;
max-width: 100%;
}
}
Hope this helps!
Got it! It worked - thank you!
You are most welcome.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.