To position a vertical navigation bar on the left or right side of a homepage in Webflow, you’ll use layout settings like Flexbox or absolute positioning. Here's how to do it properly:
1. Create the Navigation Bar Element
- Drag a
Div Block into the canvas from the Add panel. - Name it something clear like “Side Nav”.
- Set this Div’s Display to Flex (vertical) if you want stacked links vertically.
- Add your Nav Links as Text Links or Buttons inside this Div.
2. Style the Nav for Side Placement
- Select the “Side Nav” Div and set:
- Position: Choose Fixed or Absolute depending on your preference.
- Side: Set the Anchoring to Left or Right.
- Width: Set a specific width, e.g. 200px.
- Height: Set to 100% to span the full height of the page.
- Background: Add a background color if needed.
3. Adjust the Page Layout to Allow Space
- Select your main page content (usually a larger wrapper like
Main Content). - Set Display: Flex → Horizontal (Row) on the parent element (usually the Body or a top-level Wrapper).
- Ensure the Side Nav is placed before (for left nav) or after (for right nav) the Content in the Flex structure.
- Set the flex-grow: 1 on the Content, and a fixed width on the Nav.
4. Make It Responsive
- Switch to Tablet and Mobile views.
- You can change the nav to hidden or make it a hamburger menu for smaller screens.
- Use Interactions or Show/Hide logic to handle responsive behavior.
Summary
To position a vertical nav bar on either side, create a fixed or flexbox-aligned Div, set it to left or right, and ensure your main content adjusts accordingly. Use Flex layouts and fixed widths to control the spatial relationship between navigation and content.