Chapter 14: Navbar with Icons

What is a “Navbar with Icons”?

It’s a navigation bar where each menu item has an icon next to (or instead of) the text.

Common places you see this style:

  • Mobile apps (bottom nav bars)
  • Admin dashboards
  • SaaS applications
  • Modern marketing websites
  • Personal portfolios
  • Documentation / developer sites

Most popular styles in 2025–2026

Style Where it’s used most Text visible? Best screen sizes Mobile friendly?
Icon + Text (side by side) Dashboards, desktop apps Yes Desktop & tablet Good
Icon only (tooltips on hover) Clean/minimal dashboards No Desktop Needs care
Bottom navigation bar (mobile) Mobile-first apps & websites Yes (small) Phones Excellent
Top bar with large icons Creative agencies, portfolios Sometimes Desktop Medium
Hybrid (icons on desktop, text on mobile) Responsive websites Conditional All devices Very good

Let’s build the most common and versatile versions step by step.

Version 1 – Classic Top Navbar with Icon + Text (very common)

HTML

CSS

(You’ll need Font Awesome or any icon library: <link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css”>)

Version 2 – Icon-only Navbar (with tooltips) – very clean & modern

HTML change

CSS additions

CSS

Version 3 – Bottom Navigation Bar with Icons (mobile-first style)

This is extremely common in mobile apps and mobile-friendly websites.

HTML

CSS

Quick Tips Teachers Always Emphasize

  • Minimum touch target: 44×44 px (add padding!)
  • Active state is very important: color + background or underline/dot
  • Consistent icon size: 20–28px for top nav, 24–32px for bottom nav
  • Use aria-label on icon-only items
  • Hover + focus styles are mandatory for accessibility
  • Font Awesome / Heroicons / Tabler Icons / Lucide — all good free choices

Would you like to go deeper into one of these directions?

Examples:

  • Bottom nav bar with badge/notification counter
  • Top navbar with icon-only on desktop, text+icon on mobile
  • Animated active indicator that slides between items
  • Navbar with dropdown menus that have icons
  • How to make vertical sidebar with icons (dashboard style)
  • How to add dark mode support
  • How to use SVG icons instead of icon font

Just tell me what you want to focus on next — I’ll explain it slowly with complete code. 😊

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *