Navigation Bar

Free Navigation

Clean navigation header with logo and menu

Live preview

Open preview in a new tab (new tab)

Code

HTML

<div class="navbar-preview">
    <div class="logo">Brand</div>
    <div class="nav-items">
        <span class="nav-item">Home</span>
        <span class="nav-item">About</span>
        <span class="nav-item">Contact</span>
    </div>
</div>
CSS
.navbar-preview {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
}

.navbar-preview .logo {
    font-weight: bold;
    color: #4f46e5;
}

.navbar-preview .nav-items {
    display: flex;
    gap: 1rem;
}

.navbar-preview .nav-item {
    font-size: 12px;
    color: #6b7280;
}

This snippet has no JavaScript.

Navigation
Free

Hero Section

Eye-catching hero sections with gradients

  • HTML
  • CSS
  • Tailwind
Navigation
Navigation
Free

Navigation Example

A responsive navigation bar with a logo, menu links and a mobile toggle.

  • HTML
  • CSS
  • JavaScript
Navigation
Cards
Free

Content Card

Modern card layouts for content display

  • HTML
  • CSS
Cards