$ cat docs/breadcrumbs.md
updated Recently ยท 16 min read ยท published
Breadcrumbs โ CSSโ HTMLโ Tailwindโ Bootstrapโ UIโ Navigationโ Intermediate๐ฏ Free Tools Introduction
Breadcrumb navigation shows users their location within a site hierarchy and provides a path back to parent pages. This guide covers production-ready breadcrumb patterns in plain HTML/CSS, Tailwind CSS, and Bootstrap โ including slash and chevron separators, icon labels, ellipsis truncation, dropdown siblings, pill styles, and accessible markup.
โน info
Wrap every breadcrumb in a <nav> element with aria-label="Breadcrumb" so assistive technologies distinguish it from primary navigation.
Basic Breadcrumbs
Simple text-based breadcrumbs with a slash separator. The current page is non-interactive and visually distinct from clickable ancestors. This is the most common pattern for documentation sites and blogs.
basic-breadcrumbs HTML CSS Tailwind Bootstrap Live
Copy 1 <nav class="breadcrumbs" aria-label="Breadcrumb"> 2 <ol> 3 <li> 4 <a href="#"> 5 Home 6 </a> 7 </li> 8 <li> 9 <a href="#"> 10 Products 11 </a> 12 </li> 13 <li> 14 <a href="#"> 15 Electronics 16 </a> 17 </li> 18 <li aria-current="page"> 19 Wireless Headphones 20 </li> 21 </ol> 22 </nav>
Copy 1 .breadcrumbs { 2 padding:20px 24px; 3 font-family:system-ui, 4 sans-serif 5 } 6 .breadcrumbs ol { 7 list-style:none; 8 display:flex; 9 flex-wrap:wrap; 10 align-items:center; 11 gap:0; 12 margin:0; 13 padding:0 14 } 15 .breadcrumbs li { 16 display:flex; 17 align-items:center; 18 font-size:13px; 19 color:#808080 20 } 21 .breadcrumbs li:not(:last-child)::after { 22 content:'/'; 23 margin:0 10px; 24 color:#444; 25 font-size:12px 26 } 27 .breadcrumbs a { 28 color:#808080; 29 text-decoration:none; 30 transition:color .2s 31 } 32 .breadcrumbs a:hover { 33 color:#00FF41 34 } 35 .breadcrumbs li[aria-current="page"] { 36 color:#E0E0E0; 37 font-weight:600 38 }
Copy 1 <nav aria-label="Breadcrumb" class="p-6 bg-[#0A0A0A]"> 2 <ol class="flex flex-wrap items-center list-none m-0 p-0 text-[13px] text-[#808080]"> 3 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 4 <a href="#" class="hover:text-[#00FF41] transition-colors"> 5 Home 6 </a> 7 </li> 8 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 9 <a href="#" class="hover:text-[#00FF41] transition-colors"> 10 Products 11 </a> 12 </li> 13 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 14 <a href="#" class="hover:text-[#00FF41] transition-colors"> 15 Electronics 16 </a> 17 </li> 18 <li aria-current="page" class="text-[#E0E0E0] font-semibold"> 19 Wireless Headphones 20 </li> 21 </ol> 22 </nav>
Copy 1 <nav aria-label="Breadcrumb" class="p-4"> 2 <ol class="breadcrumb mb-0" style="--bs-breadcrumb-divider:'/';--bs-breadcrumb-divider-color:#444;--bs-breadcrumb-item-padding-x:0.6rem"> 3 <li class="breadcrumb-item"> 4 <a href="#" class="text-decoration-none" style="color:#808080"> 5 Home 6 </a> 7 </li> 8 <li class="breadcrumb-item"> 9 <a href="#" class="text-decoration-none" style="color:#808080"> 10 Products 11 </a> 12 </li> 13 <li class="breadcrumb-item"> 14 <a href="#" class="text-decoration-none" style="color:#808080"> 15 Electronics 16 </a> 17 </li> 18 <li class="breadcrumb-item active" aria-current="page" style="color:#E0E0E0;font-weight:600"> 19 Wireless Headphones 20 </li> 21 </ol> 22 </nav> 23 <style> 24 .breadcrumb-item a:hover{color:#00FF41 !important} 25 </style>
preview
Chevron Separators
SVG chevron icons as separators provide a cleaner, more modern look than text characters. Inline SVGs also scale crisply at any size and inherit the surrounding text color.
chevron-breadcrumbs HTML CSS Tailwind Bootstrap Live
Copy 1 <nav class="breadcrumbs chev" aria-label="Breadcrumb"> 2 <ol> 3 <li> 4 <a href="#"> 5 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" 6 stroke="currentColor" stroke-width="2" stroke-linecap="round" 7 stroke-linejoin="round"> 8 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 9 <polyline points="9 22 9 12 15 12 15 22"/> 10 </svg> 11 <span> 12 Home 13 </span> 14 </a> 15 </li> 16 <li> 17 <a href="#"> 18 Documentation 19 </a> 20 </li> 21 <li> 22 <a href="#"> 23 Components 24 </a> 25 </li> 26 <li aria-current="page"> 27 Breadcrumbs 28 </li> 29 </ol> 30 </nav>
Copy 1 .breadcrumbs.chev { 2 padding:20px 24px; 3 font-family:system-ui, 4 sans-serif 5 } 6 .breadcrumbs.chev ol { 7 list-style:none; 8 display:flex; 9 flex-wrap:wrap; 10 align-items:center; 11 gap:0; 12 margin:0; 13 padding:0 14 } 15 .breadcrumbs.chev li { 16 display:flex; 17 align-items:center; 18 font-size:13px; 19 color:#808080 20 } 21 .breadcrumbs.chev li:not(:last-child)::after { 22 content:''; 23 display:inline-block; 24 width:14px; 25 height:14px; 26 margin:0 8px; 27 background-image:url("data:image/svg+xml, 28 %3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E"); 29 background-repeat:no-repeat; 30 background-position:center; 31 background-size:contain; 32 flex-shrink:0 33 } 34 .breadcrumbs.chev a { 35 display:inline-flex; 36 align-items:center; 37 gap:5px; 38 color:#808080; 39 text-decoration:none; 40 transition:color .2s 41 } 42 .breadcrumbs.chev a:hover { 43 color:#00FF41 44 } 45 .breadcrumbs.chev a svg { 46 flex-shrink:0 47 } 48 .breadcrumbs.chev li[aria-current="page"] { 49 color:#E0E0E0; 50 font-weight:600 51 }
Copy 1 <nav aria-label="Breadcrumb" class="p-6 bg-[#0A0A0A]"> 2 <ol class="flex flex-wrap items-center list-none m-0 p-0 text-[13px] text-[#808080]"> 3 <li class="flex items-center gap-1.5"> 4 <a href="#" class="inline-flex items-center gap-1.5 hover:text-[#00FF41] transition-colors"> 5 <svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 6 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 7 <polyline points="9 22 9 12 15 12 15 22"/> 8 </svg> 9 <span> 10 Home 11 </span> 12 </a> 13 <svg class="mx-2 w-3.5 h-3.5 text-[#444]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 14 <polyline points="9 18 15 12 9 6"/> 15 </svg> 16 </li> 17 <li class="flex items-center"> 18 <a href="#" class="hover:text-[#00FF41] transition-colors"> 19 Documentation 20 </a> 21 <svg class="mx-2 w-3.5 h-3.5 text-[#444]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 22 <polyline points="9 18 15 12 9 6"/> 23 </svg> 24 </li> 25 <li class="flex items-center"> 26 <a href="#" class="hover:text-[#00FF41] transition-colors"> 27 Components 28 </a> 29 <svg class="mx-2 w-3.5 h-3.5 text-[#444]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 30 <polyline points="9 18 15 12 9 6"/> 31 </svg> 32 </li> 33 <li aria-current="page" class="text-[#E0E0E0] font-semibold"> 34 Breadcrumbs 35 </li> 36 </ol> 37 </nav>
Copy 1 <nav aria-label="Breadcrumb" class="p-4"> 2 <ol class="breadcrumb mb-0" style="--bs-breadcrumb-divider:'> 3 ';--bs-breadcrumb-divider-color:#444;--bs-breadcrumb-item-padding-x:0.5rem"> 4 <li class="breadcrumb-item"> 5 <a href="#" class="text-decoration-none d-inline-flex align-items-center gap-1" style="color:#808080"> 6 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 7 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 8 <polyline points="9 22 9 12 15 12 15 22"/> 9 </svg> 10 Home 11 </a> 12 </li> 13 <li class="breadcrumb-item"> 14 <a href="#" class="text-decoration-none" style="color:#808080"> 15 Documentation 16 </a> 17 </li> 18 <li class="breadcrumb-item"> 19 <a href="#" class="text-decoration-none" style="color:#808080"> 20 Components 21 </a> 22 </li> 23 <li class="breadcrumb-item active" aria-current="page" style="color:#E0E0E0;font-weight:600"> 24 Breadcrumbs 25 </li> 26 </ol> 27 </nav> 28 <style> 29 .breadcrumb-item a:hover{color:#00FF41 !important} 30 </style>
preview
With Icons
Adding contextual icons next to breadcrumb labels helps users quickly identify each level. Use small inline SVGs for recognition. This pattern works well in file managers and CMS admin interfaces where each level has a distinct type.
icon-breadcrumbs HTML CSS Tailwind Bootstrap Live
Copy 1 <nav class="breadcrumbs icons" aria-label="Breadcrumb"> 2 <ol> 3 <li> 4 <a href="#"> 5 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" 6 stroke="currentColor" stroke-width="2" stroke-linecap="round" 7 stroke-linejoin="round"> 8 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 9 </svg> 10 </a> 11 </li> 12 <li> 13 <a href="#"> 14 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" 15 stroke="currentColor" stroke-width="2" stroke-linecap="round" 16 stroke-linejoin="round"> 17 <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/> 18 </svg> 19 <span> 20 Projects 21 </span> 22 </a> 23 </li> 24 <li> 25 <a href="#"> 26 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" 27 stroke="currentColor" stroke-width="2" stroke-linecap="round" 28 stroke-linejoin="round"> 29 <polyline points="16 18 22 12 16 6"/> 30 <polyline points="8 6 2 12 8 18"/> 31 </svg> 32 <span> 33 Source Code 34 </span> 35 </a> 36 </li> 37 <li aria-current="page"> 38 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" 39 stroke="currentColor" stroke-width="2" stroke-linecap="round" 40 stroke-linejoin="round"> 41 <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/> 42 <polyline points="13 2 13 9 20 9"/> 43 </svg> 44 <span> 45 index.tsx 46 </span> 47 </li> 48 </ol> 49 </nav>
Copy 1 .breadcrumbs.icons { 2 padding:20px 24px; 3 font-family:system-ui, 4 sans-serif 5 } 6 .breadcrumbs.icons ol { 7 list-style:none; 8 display:flex; 9 flex-wrap:wrap; 10 align-items:center; 11 gap:0; 12 margin:0; 13 padding:0 14 } 15 .breadcrumbs.icons li { 16 display:flex; 17 align-items:center; 18 font-size:13px; 19 color:#808080 20 } 21 .breadcrumbs.icons li:not(:last-child)::after { 22 content:'/'; 23 margin:0 10px; 24 color:#333; 25 font-size:11px 26 } 27 .breadcrumbs.icons a { 28 display:inline-flex; 29 align-items:center; 30 gap:5px; 31 color:#808080; 32 text-decoration:none; 33 transition:color .2s 34 } 35 .breadcrumbs.icons a:hover { 36 color:#00FF41 37 } 38 .breadcrumbs.icons a svg, 39 .breadcrumbs.icons li[aria-current="page"] svg { 40 flex-shrink:0 41 } 42 .breadcrumbs.icons li[aria-current="page"] { 43 color:#E0E0E0; 44 font-weight:600; 45 display:inline-flex; 46 align-items:center; 47 gap:5px 48 }
Copy 1 <nav aria-label="Breadcrumb" class="p-6 bg-[#0A0A0A]"> 2 <ol class="flex flex-wrap items-center list-none m-0 p-0 text-[13px] text-[#808080]"> 3 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#333] last:after:hidden"> 4 <a href="#" class="inline-flex items-center gap-1.5 hover:text-[#00FF41] transition-colors"> 5 <svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 6 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 7 </svg> 8 </a> 9 </li> 10 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#333] last:after:hidden"> 11 <a href="#" class="inline-flex items-center gap-1.5 hover:text-[#00FF41] transition-colors"> 12 <svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 13 <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/> 14 </svg> 15 <span> 16 Projects 17 </span> 18 </a> 19 </li> 20 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#333] last:after:hidden"> 21 <a href="#" class="inline-flex items-center gap-1.5 hover:text-[#00FF41] transition-colors"> 22 <svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 23 <polyline points="16 18 22 12 16 6"/> 24 <polyline points="8 6 2 12 8 18"/> 25 </svg> 26 <span> 27 Source Code 28 </span> 29 </a> 30 </li> 31 <li aria-current="page" class="inline-flex items-center gap-1.5 text-[#E0E0E0] font-semibold"> 32 <svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 33 <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/> 34 <polyline points="13 2 13 9 20 9"/> 35 </svg> 36 <span> 37 index.tsx 38 </span> 39 </li> 40 </ol> 41 </nav>
Copy 1 <nav aria-label="Breadcrumb" class="p-4"> 2 <ol class="breadcrumb mb-0" style="--bs-breadcrumb-divider:'/';--bs-breadcrumb-divider-color:#333;--bs-breadcrumb-item-padding-x:0.6rem"> 3 <li class="breadcrumb-item"> 4 <a href="#" class="text-decoration-none" style="color:#808080"> 5 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 6 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 7 </svg> 8 </a> 9 </li> 10 <li class="breadcrumb-item"> 11 <a href="#" class="text-decoration-none d-inline-flex align-items-center gap-1" style="color:#808080"> 12 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 13 <path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"/> 14 </svg> 15 Projects 16 </a> 17 </li> 18 <li class="breadcrumb-item"> 19 <a href="#" class="text-decoration-none d-inline-flex align-items-center gap-1" style="color:#808080"> 20 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 21 <polyline points="16 18 22 12 16 6"/> 22 <polyline points="8 6 2 12 8 18"/> 23 </svg> 24 Source Code 25 </a> 26 </li> 27 <li class="breadcrumb-item active" aria-current="page" style="color:#E0E0E0;font-weight:600"> 28 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="me-1"> 29 <path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/> 30 <polyline points="13 2 13 9 20 9"/> 31 </svg> 32 index.tsx 33 </li> 34 </ol> 35 </nav> 36 <style> 37 .breadcrumb-item a:hover{color:#00FF41 !important} 38 </style>
preview
Back to Parent
A minimal "back to parent" pattern keeps mobile headers uncluttered. The single ancestor link is paired with the current page title, giving users one-tap access to the previous level without a full hierarchy.
back-to-parent HTML CSS Tailwind Bootstrap Live
Copy 1 <nav class="back-bc" aria-label="Breadcrumb"> 2 <a href="#" class="back-link"> 3 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" 4 stroke="currentColor" stroke-width="2" stroke-linecap="round" 5 stroke-linejoin="round"> 6 <polyline points="15 18 9 12 15 6"/> 7 </svg> 8 <span> 9 Back to Projects 10 </span> 11 </a> 12 <span aria-current="page"> 13 Deploy Pipeline 14 </span> 15 </nav>
Copy 1 .back-bc { 2 padding:20px 24px; 3 font-family:system-ui, 4 sans-serif; 5 display:flex; 6 align-items:center; 7 gap:12px; 8 font-size:13px 9 } 10 .back-link { 11 display:inline-flex; 12 align-items:center; 13 gap:6px; 14 padding:6px 14px; 15 border-radius:20px; 16 border:1px solid #2A2A2A; 17 color:#808080; 18 text-decoration:none; 19 transition:all .2s 20 } 21 .back-link:hover { 22 color:#00FF41; 23 border-color:rgba(0, 24 255, 25 65, 26 .3); 27 background:rgba(0, 28 255, 29 65, 30 .05) 31 } 32 .back-link svg { 33 flex-shrink:0 34 } 35 .back-bc [aria-current="page"] { 36 color:#E0E0E0; 37 font-weight:600 38 }
Copy 1 <nav aria-label="Breadcrumb" class="flex items-center gap-3 p-6 bg-[#0A0A0A] text-[13px]"> 2 <a href="#" class="inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-[#2A2A2A] text-[#808080] hover:border-[rgba(0,255,65,0.3)] hover:text-[#00FF41] hover:bg-[rgba(0,255,65,0.05)] transition-colors"> 3 <svg class="w-3.5 h-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 4 <polyline points="15 18 9 12 15 6"/> 5 </svg> 6 Back to Projects 7 </a> 8 <span aria-current="page" class="text-[#E0E0E0] font-semibold"> 9 Deploy Pipeline 10 </span> 11 </nav>
Copy 1 <nav aria-label="Breadcrumb" class="p-4 d-flex align-items-center gap-2"> 2 <a href="#" class="btn btn-sm rounded-pill d-inline-flex align-items-center gap-2" style="--bs-btn-color:#808080;--bs-btn-border-color:#2A2A2A;--bs-btn-bg:transparent;--bs-btn-hover-color:#00FF41;--bs-btn-hover-border-color:rgba(0,255,65,0.3);--bs-btn-hover-bg:rgba(0,255,65,0.05)"> 3 <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 4 <polyline points="15 18 9 12 15 6"/> 5 </svg> 6 Back to Projects 7 </a> 8 <span aria-current="page" class="text-white fw-semibold small"> 9 Deploy Pipeline 10 </span> 11 </nav>
preview
Collapsed with Ellipsis
For deep hierarchies, collapse middle items into a clickable ellipsis button. This saves horizontal space while keeping the root and current page visible at all times. Hovering the ellipsis reveals the hidden items in a dropdown, preserving the full path context.
collapsed-breadcrumbs HTML CSS Tailwind Bootstrap Live
Copy 1 <nav class="breadcrumbs collapsed" aria-label="Breadcrumb"> 2 <ol> 3 <li> 4 <a href="#"> 5 Home 6 </a> 7 </li> 8 <li class="collapsed-item"> 9 <button type="button" class="ellipsis-btn" 10 aria-label="Show hidden breadcrumbs"> 11 ยทยทยท 12 </button> 13 <div class="collapsed-dropdown"> 14 <a href="#"> 15 Library 16 </a> 17 <a href="#"> 18 Media 19 </a> 20 <a href="#"> 21 Images 22 </a> 23 <a href="#"> 24 Uploads 25 </a> 26 </div> 27 </li> 28 <li> 29 <a href="#"> 30 Projects 31 </a> 32 </li> 33 <li> 34 <a href="#"> 35 Website Redesign 36 </a> 37 </li> 38 <li> 39 <a href="#"> 40 Assets 41 </a> 42 </li> 43 <li aria-current="page"> 44 hero-banner.png 45 </li> 46 </ol> 47 </nav>
Copy 1 .breadcrumbs.collapsed { 2 padding:20px 24px; 3 font-family:system-ui, 4 sans-serif 5 } 6 .breadcrumbs.collapsed ol { 7 list-style:none; 8 display:flex; 9 flex-wrap:wrap; 10 align-items:center; 11 gap:0; 12 margin:0; 13 padding:0 14 } 15 .breadcrumbs.collapsed li { 16 display:flex; 17 align-items:center; 18 font-size:13px; 19 color:#808080; 20 position:relative 21 } 22 .breadcrumbs.collapsed li:not(:last-child):not(.collapsed-item)::after { 23 content:'/'; 24 margin:0 10px; 25 color:#444; 26 font-size:12px 27 } 28 .breadcrumbs.collapsed a { 29 color:#808080; 30 text-decoration:none; 31 transition:color .2s 32 } 33 .breadcrumbs.collapsed a:hover { 34 color:#00FF41 35 } 36 .breadcrumbs.collapsed li[aria-current="page"] { 37 color:#E0E0E0; 38 font-weight:600 39 } 40 .ellipsis-btn { 41 background:none; 42 border:1px solid #2A2A2A; 43 color:#808080; 44 padding:2px 10px; 45 border-radius:4px; 46 cursor:pointer; 47 font-size:14px; 48 font-weight:700; 49 letter-spacing:2px; 50 transition:all .2s; 51 font-family:system-ui, 52 sans-serif 53 } 54 .ellipsis-btn:hover { 55 border-color:#00FF41; 56 color:#00FF41; 57 background:rgba(0, 58 255, 59 65, 60 .05) 61 } 62 .collapsed-dropdown { 63 display:none; 64 position:absolute; 65 top:100%; 66 left:-8px; 67 margin-top:6px; 68 background:#1A1A2E; 69 border:1px solid #2A2A3E; 70 border-radius:8px; 71 padding:6px; 72 min-width:140px; 73 z-index:10; 74 box-shadow:0 8px 24px rgba(0, 75 0, 76 0, 77 .4); 78 flex-direction:column 79 } 80 .collapsed-item:hover .collapsed-dropdown { 81 display:flex 82 } 83 .collapsed-dropdown a { 84 padding:8px 12px; 85 border-radius:6px; 86 font-size:12px; 87 color:#A0A0A0; 88 white-space:nowrap 89 } 90 .collapsed-dropdown a:hover { 91 background:rgba(255, 92 255, 93 255, 94 .05); 95 color:#00FF41 96 }
Copy 1 <nav aria-label="Breadcrumb" class="p-6 bg-[#0A0A0A]"> 2 <ol class="flex flex-wrap items-center list-none m-0 p-0 text-[13px] text-[#808080]"> 3 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 4 <a href="#" class="hover:text-[#00FF41] transition-colors"> 5 Home 6 </a> 7 </li> 8 <li class="group relative flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 9 <button type="button" aria-label="Show hidden breadcrumbs" class="px-2 py-0.5 text-xs font-bold tracking-[0.15em] text-[#808080] bg-transparent border border-[#2A2A2A] rounded hover:border-[#00FF41] hover:text-[#00FF41] hover:bg-[rgba(0,255,65,0.05)] transition-colors"> 10 ยทยทยท 11 </button> 12 <div class="hidden group-hover:flex absolute top-full left-0 mt-1.5 min-w-[140px] flex-col rounded-lg border border-[#2A2A3E] bg-[#1A1A2E] p-1.5 z-10 shadow-[0_8px_24px_rgba(0,0,0,0.4)]"> 13 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 14 Library 15 </a> 16 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 17 Media 18 </a> 19 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 20 Images 21 </a> 22 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 23 Uploads 24 </a> 25 </div> 26 </li> 27 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 28 <a href="#" class="hover:text-[#00FF41] transition-colors"> 29 Projects 30 </a> 31 </li> 32 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 33 <a href="#" class="hover:text-[#00FF41] transition-colors"> 34 Website Redesign 35 </a> 36 </li> 37 <li class="flex items-center after:content-['/'] after:mx-2.5 after:text-[#444] last:after:hidden"> 38 <a href="#" class="hover:text-[#00FF41] transition-colors"> 39 Assets 40 </a> 41 </li> 42 <li aria-current="page" class="text-[#E0E0E0] font-semibold"> 43 hero-banner.png 44 </li> 45 </ol> 46 </nav>
Copy 1 <nav aria-label="Breadcrumb" class="p-4"> 2 <ol class="breadcrumb mb-0 collapsed-bc" style="--bs-breadcrumb-divider:'/';--bs-breadcrumb-divider-color:#444;"> 3 <li class="breadcrumb-item"> 4 <a href="#" class="text-decoration-none" style="color:#808080"> 5 Home 6 </a> 7 </li> 8 <li class="breadcrumb-item collapsed-item position-relative"> 9 <button type="button" aria-label="Show hidden breadcrumbs" class="btn btn-sm px-2 py-0" style="background:transparent;color:#808080;border-color:#2A2A2A;font-weight:700;letter-spacing:2px"> 10 ยทยทยท 11 </button> 12 <div class="collapsed-menu position-absolute top-100 start-0 mt-1 rounded border p-1 d-none flex-column" style="min-width:140px;background:#1A1A2E;border-color:#2A2A3E;z-index:10"> 13 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 14 Library 15 </a> 16 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 17 Media 18 </a> 19 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 20 Images 21 </a> 22 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 23 Uploads 24 </a> 25 </div> 26 </li> 27 <li class="breadcrumb-item"> 28 <a href="#" class="text-decoration-none" style="color:#808080"> 29 Projects 30 </a> 31 </li> 32 <li class="breadcrumb-item"> 33 <a href="#" class="text-decoration-none" style="color:#808080"> 34 Website Redesign 35 </a> 36 </li> 37 <li class="breadcrumb-item"> 38 <a href="#" class="text-decoration-none" style="color:#808080"> 39 Assets 40 </a> 41 </li> 42 <li class="breadcrumb-item active" aria-current="page" style="color:#E0E0E0;font-weight:600"> 43 hero-banner.png 44 </li> 45 </ol> 46 </nav> 47 <style> 48 .collapsed-item:hover .collapsed-menu{display:flex !important}.collapsed-menu a:hover{background:rgba(255,255,255,.05);color:#00FF41 !important}.breadcrumb-item a:hover{color:#00FF41 !important}.collapsed-item .btn:hover{border-color:#00FF41 !important;color:#00FF41 !important;background:rgba(0,255,65,.05) !important} 49 </style>
preview
Dropdown Breadcrumbs
Each breadcrumb level can open a dropdown showing siblings at that depth. Users can jump laterally without going back up the tree โ ideal for file managers, CMS interfaces, and deep product catalogs. The chevron-down icon rotates on hover to indicate interactivity.
dropdown-breadcrumbs HTML CSS Tailwind Bootstrap Live
Copy 1 <nav class="breadcrumbs dropdown-bc" aria-label="Breadcrumb"> 2 <ol> 3 <li class="bc-dropdown"> 4 <button type="button" class="bc-drop-btn"> 5 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" 6 stroke="currentColor" stroke-width="2" stroke-linecap="round" 7 stroke-linejoin="round"> 8 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 9 </svg> 10 <svg class="chev-down" width="10" height="10" viewBox="0 0 24 24" 11 fill="none" stroke="currentColor" stroke-width="2"> 12 <polyline points="6 9 12 15 18 9"/> 13 </svg> 14 </button> 15 <div class="bc-menu"> 16 <a href="#"> 17 Dashboard 18 </a> 19 <a href="#"> 20 Settings 21 </a> 22 <a href="#"> 23 Analytics 24 </a> 25 <a href="#"> 26 Team 27 </a> 28 </div> 29 </li> 30 <li class="bc-dropdown"> 31 <button type="button" class="bc-drop-btn"> 32 Engineering 33 <svg class="chev-down" width="10" height="10" viewBox="0 0 24 24" 34 fill="none" stroke="currentColor" stroke-width="2"> 35 <polyline points="6 9 12 15 18 9"/> 36 </svg> 37 </button> 38 <div class="bc-menu"> 39 <a href="#"> 40 Design 41 </a> 42 <a href="#"> 43 Marketing 44 </a> 45 <a href="#"> 46 Sales 47 </a> 48 <a href="#"> 49 Support 50 </a> 51 </div> 52 </li> 53 <li class="bc-dropdown"> 54 <button type="button" class="bc-drop-btn"> 55 Frontend 56 <svg class="chev-down" width="10" height="10" viewBox="0 0 24 24" 57 fill="none" stroke="currentColor" stroke-width="2"> 58 <polyline points="6 9 12 15 18 9"/> 59 </svg> 60 </button> 61 <div class="bc-menu"> 62 <a href="#"> 63 Backend 64 </a> 65 <a href="#"> 66 DevOps 67 </a> 68 <a href="#"> 69 Mobile 70 </a> 71 <a href="#"> 72 Data 73 </a> 74 </div> 75 </li> 76 <li aria-current="page"> 77 Components 78 </li> 79 </ol> 80 </nav>
Copy 1 .breadcrumbs.dropdown-bc { 2 padding:20px 24px; 3 font-family:system-ui, 4 sans-serif 5 } 6 .breadcrumbs.dropdown-bc ol { 7 list-style:none; 8 display:flex; 9 flex-wrap:wrap; 10 align-items:center; 11 gap:0; 12 margin:0; 13 padding:0 14 } 15 .breadcrumbs.dropdown-bc li { 16 display:flex; 17 align-items:center; 18 font-size:13px; 19 color:#808080; 20 position:relative 21 } 22 .breadcrumbs.dropdown-bc li:not(:last-child)::after { 23 content:'โบ'; 24 margin:0 8px; 25 color:#444; 26 font-size:14px 27 } 28 .breadcrumbs.dropdown-bc li[aria-current="page"] { 29 color:#E0E0E0; 30 font-weight:600 31 } 32 .bc-drop-btn { 33 display:inline-flex; 34 align-items:center; 35 gap:4px; 36 background:none; 37 border:none; 38 color:#808080; 39 cursor:pointer; 40 font-size:13px; 41 font-family:system-ui, 42 sans-serif; 43 padding:4px 6px; 44 border-radius:4px; 45 transition:all .2s 46 } 47 .bc-drop-btn:hover { 48 color:#00FF41; 49 background:rgba(255, 50 255, 51 255, 52 .05) 53 } 54 .chev-down { 55 transition:transform .2s 56 } 57 .bc-dropdown:hover .chev-down { 58 transform:rotate(180deg) 59 } 60 .bc-menu { 61 display:none; 62 position:absolute; 63 top:100%; 64 left:-6px; 65 margin-top:4px; 66 background:#1A1A2E; 67 border:1px solid #2A2A3E; 68 border-radius:8px; 69 padding:6px; 70 min-width:150px; 71 z-index:10; 72 box-shadow:0 8px 24px rgba(0, 73 0, 74 0, 75 .4); 76 flex-direction:column 77 } 78 .bc-dropdown:hover .bc-menu { 79 display:flex 80 } 81 .bc-menu a { 82 padding:8px 12px; 83 border-radius:6px; 84 font-size:12px; 85 color:#A0A0A0; 86 text-decoration:none; 87 white-space:nowrap; 88 transition:all .15s 89 } 90 .bc-menu a:hover { 91 background:rgba(255, 92 255, 93 255, 94 .05); 95 color:#00FF41 96 }
Copy 1 <nav aria-label="Breadcrumb" class="p-6 bg-[#0A0A0A]"> 2 <ol class="flex flex-wrap items-center list-none m-0 p-0 text-[13px] text-[#808080]"> 3 <li class="group relative flex items-center after:content-['โบ'] after:mx-2 after:text-[#444] last:after:hidden"> 4 <button type="button" class="inline-flex items-center gap-1 px-1.5 py-1 rounded text-[13px] text-[#808080] hover:text-[#00FF41] hover:bg-white/5 transition-colors"> 5 <svg class="w-3 h-3" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 6 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 7 </svg> 8 <svg class="w-3 h-3 transition-transform group-hover:rotate-180" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> 9 <polyline points="6 9 12 15 18 9"/> 10 </svg> 11 </button> 12 <div class="hidden group-hover:flex absolute top-full left-0 mt-1 min-w-[150px] flex-col rounded-lg border border-[#2A2A3E] bg-[#1A1A2E] p-1.5 z-10 shadow-[0_8px_24px_rgba(0,0,0,0.4)]"> 13 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 14 Dashboard 15 </a> 16 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 17 Settings 18 </a> 19 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 20 Analytics 21 </a> 22 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 23 Team 24 </a> 25 </div> 26 </li> 27 <li class="group relative flex items-center after:content-['โบ'] after:mx-2 after:text-[#444] last:after:hidden"> 28 <button type="button" class="inline-flex items-center gap-1 px-1.5 py-1 rounded text-[13px] text-[#808080] hover:text-[#00FF41] hover:bg-white/5 transition-colors"> 29 Engineering 30 <svg class="w-3 h-3 transition-transform group-hover:rotate-180" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> 31 <polyline points="6 9 12 15 18 9"/> 32 </svg> 33 </button> 34 <div class="hidden group-hover:flex absolute top-full left-0 mt-1 min-w-[150px] flex-col rounded-lg border border-[#2A2A3E] bg-[#1A1A2E] p-1.5 z-10 shadow-[0_8px_24px_rgba(0,0,0,0.4)]"> 35 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 36 Design 37 </a> 38 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 39 Marketing 40 </a> 41 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 42 Sales 43 </a> 44 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 45 Support 46 </a> 47 </div> 48 </li> 49 <li class="group relative flex items-center after:content-['โบ'] after:mx-2 after:text-[#444] last:after:hidden"> 50 <button type="button" class="inline-flex items-center gap-1 px-1.5 py-1 rounded text-[13px] text-[#808080] hover:text-[#00FF41] hover:bg-white/5 transition-colors"> 51 Frontend 52 <svg class="w-3 h-3 transition-transform group-hover:rotate-180" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> 53 <polyline points="6 9 12 15 18 9"/> 54 </svg> 55 </button> 56 <div class="hidden group-hover:flex absolute top-full left-0 mt-1 min-w-[150px] flex-col rounded-lg border border-[#2A2A3E] bg-[#1A1A2E] p-1.5 z-10 shadow-[0_8px_24px_rgba(0,0,0,0.4)]"> 57 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 58 Backend 59 </a> 60 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 61 DevOps 62 </a> 63 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 64 Mobile 65 </a> 66 <a href="#" class="px-3 py-2 text-xs text-[#A0A0A0] rounded-md hover:bg-white/5 hover:text-[#00FF41] transition-colors"> 67 Data 68 </a> 69 </div> 70 </li> 71 <li aria-current="page" class="text-[#E0E0E0] font-semibold"> 72 Components 73 </li> 74 </ol> 75 </nav>
Copy 1 <nav aria-label="Breadcrumb" class="p-4"> 2 <ol class="breadcrumb mb-0 dropdown-bc" style="--bs-breadcrumb-divider:'โบ';--bs-breadcrumb-divider-color:#444;"> 3 <li class="breadcrumb-item bc-dropdown position-relative"> 4 <button type="button" class="btn btn-sm btn-outline-secondary border-0 d-inline-flex align-items-center gap-1" style="color:#808080"> 5 <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> 6 <path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/> 7 </svg> 8 <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> 9 <polyline points="6 9 12 15 18 9"/> 10 </svg> 11 </button> 12 <div class="bc-menu position-absolute top-100 start-0 mt-1 rounded border p-1 d-none flex-column" style="min-width:150px;background:#1A1A2E;border-color:#2A2A3E;z-index:10"> 13 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 14 Dashboard 15 </a> 16 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 17 Settings 18 </a> 19 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 20 Analytics 21 </a> 22 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 23 Team 24 </a> 25 </div> 26 </li> 27 <li class="breadcrumb-item bc-dropdown position-relative"> 28 <button type="button" class="btn btn-sm btn-outline-secondary border-0 d-inline-flex align-items-center gap-1" style="color:#808080"> 29 Engineering 30 <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> 31 <polyline points="6 9 12 15 18 9"/> 32 </svg> 33 </button> 34 <div class="bc-menu position-absolute top-100 start-0 mt-1 rounded border p-1 d-none flex-column" style="min-width:150px;background:#1A1A2E;border-color:#2A2A3E;z-index:10"> 35 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 36 Design 37 </a> 38 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 39 Marketing 40 </a> 41 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 42 Sales 43 </a> 44 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 45 Support 46 </a> 47 </div> 48 </li> 49 <li class="breadcrumb-item bc-dropdown position-relative"> 50 <button type="button" class="btn btn-sm btn-outline-secondary border-0 d-inline-flex align-items-center gap-1" style="color:#808080"> 51 Frontend 52 <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> 53 <polyline points="6 9 12 15 18 9"/> 54 </svg> 55 </button> 56 <div class="bc-menu position-absolute top-100 start-0 mt-1 rounded border p-1 d-none flex-column" style="min-width:150px;background:#1A1A2E;border-color:#2A2A3E;z-index:10"> 57 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 58 Backend 59 </a> 60 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 61 DevOps 62 </a> 63 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 64 Mobile 65 </a> 66 <a href="#" class="d-block px-3 py-2 text-decoration-none rounded small" style="color:#A0A0A0"> 67 Data 68 </a> 69 </div> 70 </li> 71 <li class="breadcrumb-item active" aria-current="page" style="color:#E0E0E0;font-weight:600"> 72 Components 73 </li> 74 </ol> 75 </nav> 76 <style> 77 .bc-dropdown:hover .bc-menu{display:flex !important}.bc-menu a:hover{background:rgba(255,255,255,.05);color:#00FF41 !important}.bc-dropdown .btn:hover{color:#00FF41 !important;background:rgba(0,255,65,.05) !important}.breadcrumb-item a:hover{color:#00FF41 !important} 78 </style>
preview
Compact Pill Style
Compact breadcrumb pills with backgrounds on each segment. Works well in toolbars, dashboards, and narrow sidebar layouts where vertical space is at a premium. The active item uses a green accent background.
compact-breadcrumbs HTML CSS Tailwind Bootstrap Live
Copy 1 <nav class="breadcrumbs pill-bc" aria-label="Breadcrumb"> 2 <ol> 3 <li> 4 <a href="#"> 5 Home 6 </a> 7 </li> 8 <li> 9 <a href="#"> 10 Dashboard 11 </a> 12 </li> 13 <li> 14 <a href="#"> 15 Analytics 16 </a> 17 </li> 18 <li aria-current="page"> 19 Revenue Report 20 </li> 21 </ol> 22 </nav>
Copy 1 .breadcrumbs.pill-bc { 2 padding:20px 24px; 3 font-family:system-ui, 4 sans-serif 5 } 6 .breadcrumbs.pill-bc ol { 7 list-style:none; 8 display:flex; 9 flex-wrap:wrap; 10 align-items:center; 11 gap:6px; 12 margin:0; 13 padding:0 14 } 15 .breadcrumbs.pill-bc li { 16 display:flex; 17 align-items:center; 18 font-size:12px; 19 color:#808080 20 } 21 .breadcrumbs.pill-bc li:not(:last-child)::after { 22 content:''; 23 margin-left:6px; 24 width:0; 25 height:0; 26 border-left:4px solid #444; 27 border-top:4px solid transparent; 28 border-bottom:4px solid transparent; 29 flex-shrink:0 30 } 31 .breadcrumbs.pill-bc a { 32 display:inline-flex; 33 align-items:center; 34 padding:4px 10px; 35 border-radius:20px; 36 color:#A0A0A0; 37 text-decoration:none; 38 background:rgba(255, 39 255, 40 255, 41 .04); 42 border:1px solid #2A2A2A; 43 transition:all .2s 44 } 45 .breadcrumbs.pill-bc a:hover { 46 color:#00FF41; 47 border-color:rgba(0, 48 255, 49 65, 50 .3); 51 background:rgba(0, 52 255, 53 65, 54 .06) 55 } 56 .breadcrumbs.pill-bc li[aria-current="page"] { 57 display:inline-flex; 58 align-items:center; 59 padding:4px 10px; 60 border-radius:20px; 61 background:rgba(0, 62 255, 63 65, 64 .1); 65 color:#00FF41; 66 font-weight:600; 67 border:1px solid rgba(0, 68 255, 69 65, 70 .2) 71 }
Copy 1 <nav aria-label="Breadcrumb" class="p-6 bg-[#0A0A0A]"> 2 <ol class="flex flex-wrap items-center gap-1.5 list-none m-0 p-0 text-[12px] text-[#808080]"> 3 <li> 4 <a href="#" class="inline-flex items-center px-2.5 py-1 rounded-full text-[#A0A0A0] bg-white/[0.04] border border-[#2A2A2A] hover:text-[#00FF41] hover:border-[rgba(0,255,65,0.3)] hover:bg-[rgba(0,255,65,0.06)] transition-colors"> 5 Home 6 </a> 7 </li> 8 <li class="flex items-center"> 9 <svg class="mx-1 w-2 h-2 text-[#444]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"> 10 <polyline points="9 18 15 12 9 6"/> 11 </svg> 12 </li> 13 <li> 14 <a href="#" class="inline-flex items-center px-2.5 py-1 rounded-full text-[#A0A0A0] bg-white/[0.04] border border-[#2A2A2A] hover:text-[#00FF41] hover:border-[rgba(0,255,65,0.3)] hover:bg-[rgba(0,255,65,0.06)] transition-colors"> 15 Dashboard 16 </a> 17 </li> 18 <li class="flex items-center"> 19 <svg class="mx-1 w-2 h-2 text-[#444]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"> 20 <polyline points="9 18 15 12 9 6"/> 21 </svg> 22 </li> 23 <li> 24 <a href="#" class="inline-flex items-center px-2.5 py-1 rounded-full text-[#A0A0A0] bg-white/[0.04] border border-[#2A2A2A] hover:text-[#00FF41] hover:border-[rgba(0,255,65,0.3)] hover:bg-[rgba(0,255,65,0.06)] transition-colors"> 25 Analytics 26 </a> 27 </li> 28 <li class="flex items-center"> 29 <svg class="mx-1 w-2 h-2 text-[#444]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"> 30 <polyline points="9 18 15 12 9 6"/> 31 </svg> 32 </li> 33 <li aria-current="page" class="inline-flex items-center px-2.5 py-1 rounded-full text-[#00FF41] font-semibold bg-[rgba(0,255,65,0.1)] border border-[rgba(0,255,65,0.2)]"> 34 Revenue Report 35 </li> 36 </ol> 37 </nav>
Copy 1 <nav aria-label="Breadcrumb" class="p-4"> 2 <ol class="breadcrumb mb-0 align-items-center gap-2" style="--bs-breadcrumb-divider:none;"> 3 <li class="breadcrumb-item"> 4 <a href="#" class="badge rounded-pill text-decoration-none border" style="background:rgba(255,255,255,0.04);color:#A0A0A0;border-color:#2A2A2A;padding:0.4em 0.9em"> 5 Home 6 </a> 7 </li> 8 <li class="breadcrumb-item"> 9 <a href="#" class="badge rounded-pill text-decoration-none border" style="background:rgba(255,255,255,0.04);color:#A0A0A0;border-color:#2A2A2A;padding:0.4em 0.9em"> 10 Dashboard 11 </a> 12 </li> 13 <li class="breadcrumb-item"> 14 <a href="#" class="badge rounded-pill text-decoration-none border" style="background:rgba(255,255,255,0.04);color:#A0A0A0;border-color:#2A2A2A;padding:0.4em 0.9em"> 15 Analytics 16 </a> 17 </li> 18 <li class="breadcrumb-item active" aria-current="page"> 19 <span class="badge rounded-pill border" style="background:rgba(0,255,65,0.1);color:#00FF41;border-color:rgba(0,255,65,0.2);padding:0.4em 0.9em"> 20 Revenue Report 21 </span> 22 </li> 23 </ol> 24 </nav> 25 <style> 26 .breadcrumb-item a:hover{background:rgba(0,255,65,0.06) !important;border-color:rgba(0,255,65,0.3) !important;color:#00FF41 !important} 27 </style>
preview
Gray-Scale Minimal
Ultra-minimal breadcrumbs with a dot separator and color hierarchy. Links are medium gray, the current page is white and bold. This works well when the breadcrumb lives inside a card or panel.
gray-breadcrumbs HTML CSS Tailwind Bootstrap Live
Copy 1 <div class="gray-bc-wrap"> 2 <nav class="breadcrumbs gray-bc" aria-label="Breadcrumb"> 3 <ol> 4 <li> 5 <a href="#"> 6 Home 7 </a> 8 </li> 9 <li> 10 <a href="#"> 11 Blog 12 </a> 13 </li> 14 <li> 15 <a href="#"> 16 Engineering 17 </a> 18 </li> 19 <li aria-current="page"> 20 Building Design Systems at Scale 21 </li> 22 </ol> 23 </nav> 24 </div>
Copy 1 .gray-bc-wrap { 2 padding:16px 24px; 3 background:#111; 4 border-radius:10px; 5 border:1px solid #222; 6 margin:0 16px; 7 font-family:system-ui, 8 sans-serif 9 } 10 .breadcrumbs.gray-bc ol { 11 list-style:none; 12 display:flex; 13 flex-wrap:wrap; 14 align-items:center; 15 gap:0; 16 margin:0; 17 padding:0 18 } 19 .breadcrumbs.gray-bc li { 20 display:flex; 21 align-items:center; 22 font-size:13px; 23 color:#555; 24 position:relative 25 } 26 .breadcrumbs.gray-bc li:not(:last-child) { 27 margin-right:14px 28 } 29 .breadcrumbs.gray-bc li:not(:last-child)::after { 30 content:''; 31 position:absolute; 32 right:-10px; 33 width:4px; 34 height:4px; 35 border-radius:50%; 36 background:#333 37 } 38 .breadcrumbs.gray-bc a { 39 color:#777; 40 text-decoration:none; 41 transition:color .2s 42 } 43 .breadcrumbs.gray-bc a:hover { 44 color:#00FF41 45 } 46 .breadcrumbs.gray-bc li[aria-current="page"] { 47 color:#E0E0E0; 48 font-weight:600 49 }
Copy 1 <div class="p-4 bg-[#111] border border-[#222] rounded-lg"> 2 <nav aria-label="Breadcrumb"> 3 <ol class="flex flex-wrap items-center list-none m-0 p-0 text-[13px] text-[#777]"> 4 <li class="flex items-center after:content-['โข'] after:mx-2.5 after:text-[#333] last:after:hidden"> 5 <a href="#" class="hover:text-[#00FF41] transition-colors"> 6 Home 7 </a> 8 </li> 9 <li class="flex items-center after:content-['โข'] after:mx-2.5 after:text-[#333] last:after:hidden"> 10 <a href="#" class="hover:text-[#00FF41] transition-colors"> 11 Blog 12 </a> 13 </li> 14 <li class="flex items-center after:content-['โข'] after:mx-2.5 after:text-[#333] last:after:hidden"> 15 <a href="#" class="hover:text-[#00FF41] transition-colors"> 16 Engineering 17 </a> 18 </li> 19 <li aria-current="page" class="text-[#E0E0E0] font-semibold"> 20 Building Design Systems at Scale 21 </li> 22 </ol> 23 </nav> 24 </div>
Copy 1 <div class="p-3 rounded border" style="background:#111;border-color:#222"> 2 <nav aria-label="Breadcrumb"> 3 <ol class="breadcrumb mb-0" style="--bs-breadcrumb-divider:'โข';--bs-breadcrumb-divider-color:#333;"> 4 <li class="breadcrumb-item"> 5 <a href="#" class="text-decoration-none" style="color:#777"> 6 Home 7 </a> 8 </li> 9 <li class="breadcrumb-item"> 10 <a href="#" class="text-decoration-none" style="color:#777"> 11 Blog 12 </a> 13 </li> 14 <li class="breadcrumb-item"> 15 <a href="#" class="text-decoration-none" style="color:#777"> 16 Engineering 17 </a> 18 </li> 19 <li class="breadcrumb-item active" aria-current="page" style="color:#E0E0E0;font-weight:600"> 20 Building Design Systems at Scale 21 </li> 22 </ol> 23 </nav> 24 </div> 25 <style> 26 .breadcrumb-item a:hover{color:#00FF41 !important} 27 </style>
preview
Semantic HTML Structure
Breadcrumbs should use a <nav> element with aria-label="Breadcrumb" , an ordered list, and aria-current="page" on the last item. This ensures screen readers announce the full path correctly and distinguish the breadcrumb from other navigation landmarks.
breadcrumb-structure.html wrap HTML
Copy 1 <nav class="breadcrumbs" aria-label="Breadcrumb"> 2 <ol> 3 <li> 4 <a href="/"><!-- home icon --> Home</a> 5 </li> 6 <li> 7 <a href="/products">Products</a> 8 </li> 9 <li> 10 <a href="/products/electronics">Electronics</a> 11 </li> 12 <li aria-current="page"> 13 Wireless Headphones 14 </li> 15 </ol> 16 </nav>
โน info
Always wrap breadcrumbs in a <nav> element with aria-label="Breadcrumb" so screen readers distinguish it from other navigation. Use an ordered list (<ol> ) to convey hierarchy, and mark the current page with aria-current="page" .
โ best practice
For pages with more than 4 levels, collapse middle items behind an ellipsis or use dropdown menus. Showing every level in a flat list becomes overwhelming on mobile viewports and hinders quick scanning. Keep the root link (usually Home) visible even when collapsing.
โ warning
Avoid using breadcrumbs as the primary navigation. They are a supplementary pattern โ users should still be able to reach any page from the main navigation. Breadcrumbs shine in deep hierarchies like e-commerce categories, documentation sites, and file systems.
Accessibility
Accessible breadcrumbs reduce cognitive load for screen-reader users and keyboard navigators. Keep the markup semantic, the focus order logical, and the current location unambiguous.
Use a <nav> landmark with aria-label="Breadcrumb" so users can jump to it quickly. Mark the current page with aria-current="page" and make it visually distinct (bold or accent color). Use an ordered list <ol> so the hierarchy is announced in the correct sequence. Ensure every interactive segment is reachable by keyboard and shows a visible focus indicator. Keep touch targets at least 44ร44px on mobile for each breadcrumb link or button. Do not remove the underline or color from links if users rely on those cues to identify actionable text. When using dropdowns, expose the toggle with aria-expanded and aria-haspopup in production implementations. Best Practices
Use aria-label="Breadcrumb" on the nav element to distinguish it from primary navigation. Mark the current page with aria-current="page" and make it visually distinct (bold, different color). Keep the root link visible even when collapsing middle items with ellipsis. Use semantic <ol> instead of <div> to convey ordering information. Ensure touch targets are at least 44ร44px on mobile for each breadcrumb link. Truncate long labels with ellipsis rather than letting them overflow the container. Sync breadcrumb links with the URL structure so deep links work correctly. Provide Tailwind and Bootstrap variants from the same semantic base so teams can adopt the pattern without rewriting markup.