LoginSignup
1
0

More than 3 years have passed since last update.

縦スクロールバーが2本出てくる&hidden消したら内側に出てきちゃう問題

Last updated at Posted at 2020-08-20

今のPJにBacklogがないので備忘録

問題

・webサイトの縦に長いページだと縦スクバーが2本出てくる
・参考サイトで出てきた以下記述を消すと、横スクが出てくる&縦スクがbodyの内側に出てきちゃう

css
html, body {
width: 100%;
overflow-x: hidden; ←消す
}

解決方法

css
html, header {
width: 100%;
overflow-x: hidden;
}

bodyをheaderにするだけでした。
これに1時間近くかけてたの工数泥棒としか言えず…。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0