Top Bar & Main Nav Combo (Stacked/Two-Tiered Navbar) Template

Often referred to as a "stacked" or "two-tiered" header, this is a highly practical navbar layout is ideal for corporate websites and e-commerce stores.

This is a very robust and common pattern for larger e-commerce and corporate sites where there is a lot of important information to present without cluttering the main navigation. This implementation uses position: sticky on the parent header to ensure the entire block sticks to the top as a single unit.

Screenshot of the top nav and main nav combo template

Get Source Code → Preview →

The Top Bar + Main Nav Combo

A highly practical, two-tiered header layout ideal for corporate websites and e-commerce stores. It features a slim "top bar" for secondary, utility information (like social links or contact details) and a larger main navigation bar below for primary site links. The entire header unit remains sticky at the top of the page for constant access.

Coding Best Practices

Code

Here's the full code for the navbar template:

View Output