overflow-*** は、overflow の縦と横の処理を個別に指定するプロパティです。(*** の部分には、x または y が入ります) overflow-x … 横方向の指定 overflow-y … 縦方向の指定 div.example1 { width: 200px; height: 100px; white-space: nowrap; overflow-x: scroll; } div.example2 { width: 200px; height: 100px; overflow-y: scroll; }
![スタイルシート[CSS]/ボックス/overflowの縦横の処理を個別に指定する - TAG index](https://cdn-ak-scissors.b.st-hatena.com/image/square/37a7393781ce71801a3fd24ae1552adf235c557f/height=288;version=1;width=512/https%3A%2F%2Fwww.tagindex.com%2Fimage%2Fogp%2Fstylesheet.png)