header を上部に固定する際のメモ
// ページ内リンクの際にheader分の高さを確保する html { scroll-padding-top: 80pxf } // header固定の設定 header { position: sticky; top: 0; z-index: 1; }
// ページ内リンクの際にheader分の高さを確保する html { scroll-padding-top: 80pxf } // header固定の設定 header { position: sticky; top: 0; z-index: 1; }