Open this example in the interactive library
Source code
<style>
.demo {
overflow-x: auto;
max-width: 13rem;
white-space: nowrap;
}
</style>
<div class="demo">Scroll right to read the final words.</div>
Allow horizontal scrolling only with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
overflow-x: auto;
max-width: 13rem;
white-space: nowrap;
}
</style>
<div class="demo">Scroll right to read the final words.</div>