scroll-padding-topを使う機会があったのでメモ。
以下のコードを追加するだけで解消されるのでぜひためしてみよう。
html {
scroll-padding-top: 100px;//ヘッダーの高さを指定
}
(Visited 26 times, 1 visits today)
scroll-padding-topを使う機会があったのでメモ。
以下のコードを追加するだけで解消されるのでぜひためしてみよう。
html {
scroll-padding-top: 100px;//ヘッダーの高さを指定
}