I’m encountering an issue with my navbar in Webflow. On the homepage, the logo in the navbar has proper spacing from the border, but on other pages (see contact page), the logo appears to be stuck to the edge.
Here’s what I’ve checked so far:
The logo uses the same class on all pages.
The navbar wrapper and its padding/margin settings are identical across pages.
There are no unique styles or combo classes applied to the logo or navbar on any specific page.
In the Designer, everything looks perfectly fine, but when I publish the site, the issue appears.
Does anyone know what could be causing this inconsistency or how I can fix it?
You have your logo styling set to fit: cover, and overflow: clip. That means if anything causes the browser to adjust the layout calcs, you’ll end up with your logo truncated.
I’d keep it simple. Give your logo a width, only. No cover, no clipping, it will be less sensitive to layout factors.
As to why it’s happening, I’d guess it has to do with some section on your homepage that is forcing the browser to recalculate certain layout params, most likely canvas width.
It sounds like the issue could be related to a few things. Here are some things to check:
Global Styles: Double-check your global styles or page-specific overrides in the Designer to ensure there’s no conflicting CSS affecting the navbar or logo on the contact page.
Viewport/Container Settings: Sometimes different page layouts or container widths can cause elements to look off when published. Verify that the container or section holding the navbar has consistent settings across pages.
Margins/Paddings from Parent Elements: Even if the navbar itself looks consistent in the Designer, other parent elements might have different margin or padding settings that affect the layout on other pages. Inspect the navbar and its parents in the published version using browser tools to see if anything changes.
Custom Code: If you’re using custom code on the contact page, it might be affecting the navbar’s spacing. Try disabling any custom code to see if the problem persists.
Try these fixes, and if the issue continues, it could be useful to check the published site’s actual HTML and CSS to identify what’s causing the change in spacing.