본문 바로가기
명함 만들기 캐릭터 모음 16가지 디자인 · PNG / SVG / PDF

이동 경로

계층이 깊은 페이지에서 '여기가 어디고 한 단계 위는 무엇인지' 알려 줘야 할 때 쓰는 조각.

내비게이션

실제 미리보기

출처

<nav class="dc-bc" aria-label="현재 위치">
  <ol class="dc-bc__list">
    <li class="dc-bc__item"><a class="dc-bc__link" href="#">홈</a></li>
    <li class="dc-bc__item"><span class="dc-bc__sep" aria-hidden="true">›</span><a class="dc-bc__link" href="#">디자인 조각</a></li>
    <li class="dc-bc__item"><span class="dc-bc__sep" aria-hidden="true">›</span><a class="dc-bc__link" href="#">내비게이션</a></li>
    <li class="dc-bc__item"><span class="dc-bc__sep" aria-hidden="true">›</span><span class="dc-bc__current" aria-current="page">이동 경로</span></li>
  </ol>
</nav>
.dc-bc { font-family: var(--dc-font); font-size: 13px; }
.dc-bc__list {
  display: flex; flex-wrap: wrap; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.dc-bc__item { display: flex; align-items: center; min-width: 0; }
.dc-bc__sep { padding: 0 var(--dc-1); color: var(--dc-text-mute); font-size: 12px; }
.dc-bc__link {
  display: inline-flex; align-items: center; min-height: 32px;
  padding: 0 var(--dc-1); border-radius: var(--dc-r-xs);
  color: var(--dc-text-sub); text-decoration: none;
  transition: color var(--dc-fast);
}
.dc-bc__link:hover { color: var(--dc-brand-text); text-decoration: underline; }
.dc-bc__current {
  display: inline-block; max-width: 32ch; padding: 0 var(--dc-1);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--dc-text); font-weight: 700;
}
.dc-bc__more {
  display: grid; place-items: center; min-width: 32px; min-height: 32px;
  border: 0; border-radius: var(--dc-r-xs);
  background: transparent; color: var(--dc-text-sub);
  font-family: inherit; font-size: 14px; cursor: pointer;
}
.dc-bc__more:hover { background: var(--dc-sunken); color: var(--dc-text); }
@media (max-width: 520px) {
  .dc-bc__current { max-width: 16ch; }
}

이렇게 씁니다

  • 두 단계까지는 쓰지 않는다 — 세 단계 이상일 때만 자리값을 한다
  • 마지막 칸은 링크가 아니라 현재 위치다. aria-current="page" 를 붙인다
  • 구분 기호는 aria-hidden 으로 숨긴다 — 읽어 주면 '홈 꺽쇠' 가 된다

주의할 점

  • 좁은 화면에서는 가운데를 접고 앞뒤만 남긴다 — 줄바꿈되면 경로로 읽히지 않는다
  • 제목이 길면 말줄임하되 title 이나 aria-label 로 전체를 남겨라

다음에 볼 것