Webflow sync, pageviews & more.
NEW

How can I create a centered navigation bar similar to the one on the Pantone website using Webflow?

TL;DR
  • Create a custom navbar using a flexbox layout with three divs: left links, centered logo, and right links.
  • Set the wrapper to Flex with Space-between and center alignment, adjust widths of side groups, and style responsively for smaller breakpoints.

To create a centered navigation bar like the one on the Pantone website in Webflow, you need to use Flexbox or Grid to structure your layout and center the nav links around a central logo. Here's how to build it.

1. Structure the Navbar Elements

  • Add a Navbar component from the Add panel.
  • Delete the default container inside the Navbar (optional, based on your layout preference).
  • Inside the Navbar, add a Div Block called nav-wrapper to hold your three main elements:
  • Left links group
  • Center logo
  • Right links group

2. Add Navbar Content

  • Inside nav-wrapper, add three Div Blocks:
  1. nav-left: For your left navigation links (e.g., "Shop", "Color Finder").
  2. nav-center: For the logo (e.g., Pantone logo).
  3. nav-right: For right-hand links (e.g., "Login", "Search").

3. Apply Flexbox to Align Items

  • Select the nav-wrapper and:

  • Set Display to Flex.

  • Set Justify to Space-between.

  • Set Align to Center.

  • This will push the left and right groups to the sides and keep the logo centered.

4. Style Each Section

  • Set a fixed or relative width (or max width) to nav-left and nav-right so they don't push the center logo off.
  • Optionally, use Auto margins on the center element or apply Text Align: Center if necessary.

5. Make It Responsive

  • On smaller breakpoints:
  • Consider hiding nav-left and nav-right and using a Menu button.
  • Change flex direction to Column if stacking is required.

6. Fine-Tune Spacing and Typography

  • Add appropriate padding inside nav-wrapper or the Navbar for spacing.
  • Style text links and logo to match your desired aesthetics (matching fonts, sizes, colors, etc.).

Summary

To replicate Pantone’s centered navbar, build a three-part flexbox layout inside a custom navigation bar—left links, centered logo, and right links. Use Flex: Space-between and center alignment to position everything cleanly, then style for different screen sizes.

Rate this answer

Other Webflow Questions