LAYOUT LAB / CANONICAL HTML + CSS

본문만 스크롤하는 화면

Keep shell regions fixed while only the body scrolls.

720px

원문 CSS의 공간 배치를 실행합니다. 색·테두리는 영역 구분용이며, 비어 있던 미디어와 설정 슬롯에는 예시 콘텐츠를 채웠습니다.

실행한 HTML·CSS 코드
<section class="scroll_body_shell" aria-label="Inbox">
    <header>Inbox filters</header>
    <main class="scroll_body_shell_body">Message list owns vertical scrolling</main>
    <footer>Selected message actions</footer>
</section>

<style>
.scroll_body_shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-block-size: 100dvh;
}

.scroll_body_shell_body {
    min-block-size: 0;
    overflow: auto;
}

</style>
원문 가이드