0
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

posted at

Organization

【CSS】レスポンシブ時に右側に余白ができたときの解消法

レスポンシブ時に右側に余白ができたときの解消法

はじめての投稿になります!
アプリ開発中に出くわした問題解決時の備忘録がてら、今後ちょいちょい投稿していきます!

<body>
 <div class="wrap">
.
.

 </div>
</body>

body要素をまるっとwrapクラスで囲って、、

.wrap {
overflow: hidden;
}

そのwrapクラス、css指定ではみ出した要素をhidden指定するだけです^^
以上!

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
Sign upLogin
0
Help us understand the problem. What are the problem?