About this snippet

Help users navigate your site with these stylish breadcrumbs. We utilize CSS borders to create clean chevron arrows between links, which improves both SEO and the overall user experience without needing image assets.

Size
1.2 KB
Uses
HTML, CSS
Loads
Nothing external
Views
383
<nav aria-label="breadcrumb">
  <ol class="modern-breadcrumb">
    <li><a href="#">Home</a></li>
    <li><a href="#">Categories</a></li>
    <li><a href="#">Electronics</a></li>
    <li aria-current="page">Smartphones</li>
  </ol>
</nav>
.modern-breadcrumb {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  list-style: none;
  padding: 12px 20px;
  background: #f9fafb;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.modern-breadcrumb li {
  display: flex;
  align-items: center;
  color: #6b7280;
  font-size: 0.95rem;
}
.modern-breadcrumb li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #d1d5db;
  border-top: 2px solid #d1d5db;
  transform: rotate(45deg);
  margin-left: 12px;
}
.modern-breadcrumb a {
  text-decoration: none;
  color: #3b82f6;
  font-weight: 500;
  transition: color 0.2s;
}
.modern-breadcrumb a:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.modern-breadcrumb li:last-child {
  color: #374151;
  font-weight: 600;
}
Esc
↑↓ moveEnter select

Start from a template

Open an .html file, or HTML, CSS, JS, Markdown, Less or TypeScript files. You can also drop them here. Styles and scripts go into their panes.

Share

Source

Keyboard shortcuts

Save