Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
8
Help us understand the problem. What is going on with this article?
@mimoe

横並びにした時に、改行せずにスクロールさせる方法

More than 3 years have passed since last update.

よく忘れるのでメモ。

<div>
  <ul>
    <li>リスト1</li>
    <li>リスト2</li>
    <li>リスト3</li>
  </ul>
</div>
div {
  width: 100px; /* 任意の数字 */
  overflow-x: scroll;
}
ul {
  white-space:nowrap;
}
li {
  display: inline-block;
  white-space:normal; /* なくても大丈夫nowrapでも */
}
8
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
mimoe
大学(経営学部)を卒業後、携帯販売をしていました。 2013.04から1年間専門学校でアプリ開発を勉強 2014.04からWeb制作会社に就職 その後フリーランス 現在はフリーランス時に仕事を受けていたスタートアップの会社に就職 基本的には自分の備忘記録です。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
8
Help us understand the problem. What is going on with this article?