Make named anchor bookmarks appear always at top of the screen when clicked

后端 未结 12 651
耶瑟儿~
耶瑟儿~ 2021-01-03 04:21

I have my markup as follows:

  • Sheds & Housing
  • <
    12条回答
    •  不知归路
      2021-01-03 05:12

      The problem is (if I understand correctly!) you are hitting the end of the page. If you extend the margin on the last element or add some content the header will show on top (if there is enough of the page left to be shown).

      See fiddle: http://jsfiddle.net/tHXsS/

    提交回复
    热议问题