가로로 넘기는 목록
reel
Let a row scroll horizontally instead of wrapping.
이 자료로 구현하기
원문 주소와 버전이 포함된 요청문입니다. 복사한 뒤 만들 화면과 요구사항을 채워 에이전트에게 전달하세요.
TRY THE PATTERN
너비가 달라지면 어떻게 될까요?
원문의 HTML·CSS로 실행합니다. 색과 테두리는 영역을 구분하기 위한 예시입니다.
FROM PRINCIPLE TO PRACTICE
이 원리로 만든 예제 2
예제를 열어 직접 조작하고, 관찰한 동작을 이 문서의 원리와 비교해 보세요.
Horizontal gallery옆으로 읽는 장면
- 감싸지 않고 넘겨 보는 가로 행
이 예제는 정본의 그리드 CSS를 가져오지 않고 플렉스로 같은 가로 스크롤 책임을 구현합니다. 카드 너비는 영역의 86%이고 다음·이전 버튼이 실제 스크롤 위치로 이동합니다. 번호는 스크롤 위치에서도 계산되며 오른쪽에서 왼쪽 방향의 좌표 처리는 검증되지 않았습니다.
- 감싸지 않고 넘겨 보는 가로 행
가로로 넘기는 목록reel
- 원문 HTML과 CSS의 실제 배치
영역 너비와 글 방향을 바꿔 줄바꿈, 수축, 스크롤 주체를 확인합니다. 원문 스니펫을 그대로 실행합니다.
- 원문 HTML과 CSS의 실제 배치
When To Use
Use this pattern when you need to let a row scroll horizontally instead of wrapping.
HTML
<section class="reel" aria-label="Upcoming events">
<article>Design critique</article>
<article>Planning workshop</article>
<article>Launch review</article>
</section>CSS
.reel {
display: grid;
gap: 1rem;
grid-auto-columns: minmax(14rem, 35%);
grid-auto-flow: column;
overflow-x: auto;
}Core Properties
display,gap,grid-auto-columns,grid-auto-flow,overflow-xdefine the spatial behavior for this pattern.
Properties That Break The Layout If Removed
- Removing
display,gap,grid-auto-columns,grid-auto-flow,overflow-xchanges the pattern from its documented layout responsibility back toward ordinary flow or an unsafe fixed arrangement.
Constraints And Change Points
- scroll responsiveness is part of the contract; change sizing values only when the new minimum, maximum, or wrap point is documented with the pattern.
- Keep the HTML class hooks and CSS selectors in one-to-one agreement.
Scroll Ownership
Pattern owns the named scroll container.
Accessibility And Source Order Notes
- Semantic role expectation: Preserve the HTML sample's landmark, list, navigation, form, figure, or article roles; layout classes must not replace semantic elements.
- DOM order expectation: Keep semantic elements, DOM order, reading order, and focus order independent from the visual placement created by the layout classes.
- Focus risk: Any interactive descendants follow DOM order; do not use this pattern to create a visual order that keyboard focus cannot follow.
- Scroll expectation: Pattern owns the named scroll container.
- Cognitive risk: Medium: scroll ownership can hide context, controls, or return points if it is not named in the consuming layout.
Browser And Fallback Notes
The CSS uses modern grid, flex, intrinsic sizing, logical properties, or positioning. If a target browser cannot support a property, fall back to ordinary block flow before adding decorative or script-driven layout behavior.
Composition Notes
Use reel as the stable pattern root and compose additional layout behavior outside that root unless the child class is part of the documented relationship.
Anti-patterns
- Do not add color, border, shadow, typography, or animation rules to reusable pattern CSS.
- Do not use this pattern to repair unclear HTML structure; make the DOM roles legible first.
IA Navigation
Parent: In-line grouping patterns in Pattern Categories. Next: Layout Recipes for screen-level composition, or return to the Layout Pattern Catalog when choosing another primitive.


