To create a centered navigation bar similar to Pantone’s in Webflow, you'll need to structure your nav with a logo centered between nav links on both sides.
1. Create Your Navbar Structure
- Drag in a Navbar component from the Add panel.
- Delete the default Navbar contents (or clear them to start fresh).
- Add the following inside the Navbar container:
- Div Block 1 (Left Links)
- Div Block 2 (Center Logo)
- Div Block 3 (Right Links)
2. Style the Navbar Container
- Give the navbar a class, e.g.,
Navbar. - Set display: flex, justify: space-between, and align-items: center.
- Add padding and background color as needed.
3. Add and Style Link Blocks
- Inside Div Block 1, add Link Blocks or Text Links for your left-side links (e.g., About, Products).
- Do the same for Div Block 3 (e.g., Blog, Contact).
- Style all link blocks to match Pantone’s look—consistent font size, weight, spacing, and color.
4. Insert and Center the Logo
- In Div Block 2, add your logo image or a text element with your brand name.
- Center it using auto margins or ensure the navbar uses
justify: space-between to naturally center it based on the side link widths. - Apply a fixed width to the logo if needed to help maintain balance.
5. Handle Responsiveness
- On Tablet and Mobile breakpoints, either:
- Stack the logo above the links.
- Or use Webflow’s native menu icon and create a custom mobile menu.
- Ensure all elements resize or stack cleanly without overlap.
6. Optional: Use Absolute Logo Centering
If side link widths vary, and your logo needs to remain perfectly centered regardless of link size:
- Set Navbar container to position: relative.
- Set Div Block 2 (logo) to position: absolute, left: 50%, and apply transform: translateX(-50%).
- Ensure side links still sit in regular document flow with appropriate spacing.
Summary
To mimic Pantone’s centered navbar, use a three-div flex setup with side links flanking a centered logo. Apply flexbox styles to distribute space and an optional absolute positioning technique for precise centering. Adjust for responsiveness to ensure a clean mobile experience.