Skip to content Skip to sidebar Skip to footer

Fabrik How to Upload a Logo to Your Navigation

This video features an erstwhile UI. Updated version coming soon!

In this lesson:

  1. Add a Navbar
  2. Style a Navbar
  3. Empathize the bill of fare push button in a Navbar
  4. Reuse a Navbar on multiple pages
  5. Stick the Navbar to the height of a page
  6. Add a dropdown to the Navbar

Add a Navbar

Navbar icon thumbnail

To add a Navbar, scroll to the Components section of the Add panel and drag a Navbar element into your project.

You can place the Navbar anywhere in your project — there's no correct or wrong mode to do this. Since the Navbar is cocky-contained, yous tin can move where and whenever you similar. For our case, we'll place it at the top, direct inside our body element.

The eleven elements that are included in the Components section are background video, dropdown, embed, lightbox, navbar (highlighted), search, slider, tabs, map, facebook and twitter.

Our navbar holds a group of elements all placed neatly within a container that keeps content centered on the page.

  • Brand: The brand placeholder is a Link Cake located to the left of the navbar. Hither you can add a logo or text or any other brand indication.
  • Nav card: To the right is the nav menu. It contains all the navigation (nav) links.
  • Nav links: These are text links with predefined padding and other styles. They're usually linked to dissimilar pages or sections on your website.
  • Menu button: Past default, the bill of fare push is hidden on desktop view. It allows y'all to access the nav menu and nav links when horizontal space is limited, like on a mobile device. Learn more near the Menu Button.

Configuring the brand logo

Let'southward add together a logo to our navbar.

Head to the Assets panel in the left panel of the Designer where you lot tin upload and manage avails. Click Upload in the upper right corner and cull the file(s) yous'd like to upload. We'll drag our logo prototype into the Make link.

The Assets panel displays nine images of plants life scenes.

Linking the make logo to the homepage

It's standard practice for a brand image or logo to link back to the homepage. To practise this:

  1. Select the Brand link cake
  2. Go to Element settings (Shortcut: D)
  3. Nether Link settings choose Page
  4. Select Dwelling house from the dropdown

Step one on the left, select the brand logo. Step two on the right, select Home from the dropdown menu under the Page settings in the Link Settings section.

Adding Nav links

The second component of the navbar is the nav menu. This component holds our nav links. By default, the navbar comes with a few nav link placeholders y'all tin can edit, delete, or add.

To add more than Nav links:

  1. Select any element in the Navbar
  2. Become to the Element settings (Shortcut:D)
  3. Nether Navbar settings, click Add link

The Add link button in the Navbar settings section is highlighted.

Some other way to add nav links is to copy and paste a nav link that already has a class applied to it. This is a great time saver if you plan on styling multiple nav links. To practise this:

  1. Delete all but one nav link
  2. Give the nav link a form
  3. Copy and paste the nav link as many times as you demand

When you duplicate this nav link, the class is already applied to each new one yous paste. At present, y'all can double-click the nav link to edit the text within.

The style panel displays a nav link selected with a class name Nav Link. It also displays how many are on this page, 1, and on other pages, 4.

Linking Nav links

To link each nav link to a different source:

  1. Select the Nav link
  2. Go to the Element settings (Shortcut: D)
  3. Under Link settings, select the link type

The link settings panel displays six link style buttons, a URL text input field, a check box for "Open in new tab" and a dropdown menu for Preload.

Style a navbar

The Navbar element is very flexible when it comes to styling.

In this section, we'll focus on 5 areas that requite us that command:

  1. Size of the navbar
  2. Positioning of the navbar
  3. Nav link states
  4. Navbar and nav link backgrounds
  5. Nav link transitions

Size of the navbar

The Navbar element has no preset values for width or meridian.

Navbar width

When the navbar is dropped inside of the body, section, or another element it will take up the total width of that element. You can constrict the Navbar horizontally past setting a width or by constricting the width of the parent element. .

Navbar top

The height of the navbar is determined by the content inside. Specifically that means the tiptop of the brand logo, or the elevation of the nav links. You can adjust the height of the navbar in a number of ways:

  • Adding a acme value to the navbar
  • Calculation meridian and bottom padding to the navbar itself
  • Calculation top and bottom padding to the content inside the navbar

You tin add padding to the nav links past selecting a nav link and adjusting the elevation and bottom padding. The size of the nav link and the navbar adjusts accordingly. Y'all can also add together margin to achieve a like upshot.

A more compatible approach might be to select the navbar and adjust its padding. Increasing the padding adds more pinnacle because information technology creates extra space between the navbar and the container that holds all the Navbar elements.

Pro-tip: Hold Pick/Alt key while dragging the padding push button to increment the padding on the opposite side.

Nav carte superlative

You tin can also make similar changes to the nav menu which appears on devices that accept the Mobile icon set to visible. You can open the nav carte to access it by selecting the navbar and clicking Open Menu under the Settings panel.

Adjusting the height of nav links on touch devices is really helpful to make certain that the size of your tap targets is big enough for finger taps. Larn more well-nigh the Nav Bill of fare Button

Fashion the nav link

This is where classes aid out a lot. Classes relieve styling information you can employ to as many elements every bit you want throughout your project. The moment you begin styling an element, a class is automatically created and applied to the selected chemical element. All styling adjustments fabricated to this chemical element are saved in this class. You can besides create a course manually, before adding styles, past typing in a class proper name in the selector.

Step one on the left, click the plus icon inside the selector. Step two on the right, name the new class Nav Link.

You tin can access the selector either by:

  • Clicking into the selector field in the Mode panel
  • Hit CMD + Enter (on Mac) or CTRL + Enter (on Windows)
  • Right-clicking the element and clicking Add class in the context bill of fare

Now, we can use the same course to each of the nav links so changes to that grade bear upon all the links in the navbar at once.

You can likewise manner nav nink backgrounds in their default and hover state. For the hover state, activate the hover state and set a background. This groundwork volition be visible when a user hovers over the nav link.

Nav link states

Ane of the simplest means to visually indicate that the mouse is hovering on a link is a color modify on hover. Select the Hover state from the States menu and choose a unlike font colour. Acquire more than on how to manner the various states of a link including the Current auto-country.

Use the same form to each of the nav links and then changes to that class touch all the links in the Navbar at once.

Sympathise the menu button in a navbar

The menu button is an element inside the navbar that organizes the nav links when at that place is express horizontal space, similar on a mobile device. It's sometimes called a hamburger menu. The carte du jour button and its functionality are built into the navbar element and can be accessed and configured in a number of ways.

By default, the nav menu button appears on Tablet breakpoint and below. You tin go to preview style and meet the menu appear in your navbar when you switch to these devices. Clicking that carte du jour push button will expand the nav carte du jour. Clicking the button once again collapses the nav menu.

On the Desktop breakpoint, you can see the nav links are nested inside the nav menu chemical element. This nav menu is the same chemical element that displays when the carte button is clicked — it displays the nav links in a vertical list.

Trigger the menu in the Designer

Yous tin can open the nav menu in the Designer with the following steps:

  1. Select the Navbar or whatever element within it
  2. Go to the Element settings and click Open carte du jour
  3. The Designer will automatically switch to the Tablet breakpoint open the menu

The Open menu button is highlighted in the Navbar settings panel.

Customize push visibility for unlike breakpoints

The Navbar menu button initially appears in the Tablet breakpoint, but y'all can change this to make the push visible on all or no breakpoints:

  1. Select the Navbar or whatsoever element inside
  2. Become to the Chemical element settings
  3. Use the device options slider to select where the menu button first appears

The device options slider is highlighted on the Navbar settings.

Reuse a navbar on multiple pages

Reusing your navbar on multiple pages tin be handy when using a gluey navbar throughout your project. To make this easy, we'll create a symbol of our navbar.

To create our navbar symbol:

  1. Select the Navbar in the Navigator
  2. Right-click the label of the navbar and select Create symbol
  3. Give the symbol a proper noun and click Create symbol

One time yous've created a symbol, the main way of the symbol volition open. All changes in the main way will pour across all instances of that symbol. Yous tin can enter chief manner past double-clicking. See Editing the main symbol.

Step one on the left, select the Create symbol from the container settings after right clicking. Step two on the right side, name new symbol Navbar.

Now nosotros can reuse the aforementioned navbar element anywhere in our projection.

Offset, open the symbol panel, and then click and drag the navbar symbol to whatever folio in your project. But like any element, yous can drop the symbol straight on the canvas or in the Navigator for more precision.

When you select an instance of a symbol, y'all'll see it highlighted and outlined in green. Click the Style panel to see how many instances of that symbol are in your project.

Step one on the left, select the Navbar symbol from the symbols panel. Step two on the right, view the highlighted area displaying the amount of instances the symbol is used.

Stick the navbar to the top of a page

First, we want to make certain the navbar is a direct child of the body element. Why? Considering nosotros want it to stay on acme when scrolling. The sticky position keeps the navbar in place until you roll by information technology. But in this case, the navbar sticks to the top of the folio while the remaining content scrolls away. And when you ringlet back to the top of the page, the navbar volition reposition itself.

Stick the navbar to the acme of the page

Select the navbar and head to the Way console. Set up the position to mucilaginous and ready a top value of 0 to proceed the navbar stock-still to the top on scroll. And to brand sure the navbar stays on top of all other content, add a high z-index value (e.g. 2147483647, which is the highest z-index value detected past almost browsers).

Step one on the left, select the Position dropdown menu in the style panel position section. Step two on the right, select Sticky from the dropdown menu.

Must know: Set a value on at least one side of the sticky element to make certain the sticky position works.

The position section in the style panel displays a dropdown menu for the position, four input fields for numeric characters, a relative to selector, a z-index input field and a float and clear button.

Understand position sticky vs. fixed

Position fixed removes the element from the document menstruum, so the navbar will float on the unabridged page and overlap other elements. Nosotros don't desire this to happen when the navbar is still in its initial position. Nosotros only desire the navbar to stay fixed and floating above other elements when we're scrolling.

On the other hand, position gummy keeps the element in the document flow and just sets information technology to position fixed when the chemical element's initial position is scrolled away. So, the navbar stays exactly where yous've placed information technology without overlapping next elements. When you commencement to scroll past, it becomes fixed to the viewport.

Troubleshoot position sticky

Sometimes position sticky won't work even though you've set the position to mucilaginous and defined a altitude value for one of the sides of the element. That tin can happen for many reasons:

  • Position viscid volition most probably not piece of work if overflow is gear up to hidden, scroll, or auto on any of the parents of the chemical element
  • Position viscid may not work correctly if any parent element has a fix summit
  • Many browsers however don't back up sticky positioning. Bank check out which browsers back up position:viscid.

Position pasty might non work if the position distance value is set up on a side that isn't affected by the scrolling. For case, if you set the distance on the left or correct, and you're scrolling through the page vertically, the element won't stick.

It also won't work if you've set up a distance to the bottom, for instance, instead of the pinnacle and your element is aligned to the top of the parent — it's either the first element in the parent or aligned to the top with flex or grid alignment settings.

Step one on the left, add 30 to the bottom margin in the position sticky setting. Step two on the right, under the layout section, set Justify to end.

Add a dropdown to the navbar

A dropdown menu is a pre-built navigation element that can be added to almost whatsoever area of a projection. Usually you'll meet a dropdown chemical element in the navbar of a website.

From the Add panel on the right, y'all can drag the dropdown element to the desired location in your project.

The eleven elements that are included in the Components section are Background Video, Dropdown (highlighted), Embed, Lightbox, Navbar, Search, Slider, Tabs, Map, Facebook and Twitter.

Dropdown settings

The dropdown list isn't visible until the Dropdown is clicked. Yous can make it visible by going to the Settings tab and enabling the Open carte du jour option.

Past default, the dropdown listing appears when a user clicks the dropdown toggle, just you can make information technology announced when the user hovers on the dropdown toggle by enabling the Open card on hover selection. The close delay time (the time it takes for the dropdown list to close afterwards hovering away) tin be adjusted in milliseconds.

And that'south creating a navbar with a dropdown carte. Nice work!

renaudathe1975.blogspot.com

Source: https://university.webflow.com/lesson/navbar

Post a Comment for "Fabrik How to Upload a Logo to Your Navigation"