3 ms·
Another common problem with overlayed top bars is that when following fragment links within a page, the browser scrolls the page such that the target anchor is
by layer8 2y ago
Another common problem with overlayed top bars is that when following fragment links within a page, the browser scrolls the page such that the target anchor is at the top of the window, which then means it’s hidden by the top bar. For example, when jumping to a subsection, the subsection title (and the first lines of the following paragraph text) will often be obscured by the top bar.
- morder 2y agoYou can somewhat solve this by using some css to specify the offset from the top the anchor should be. `scroll-margin-top`
- gavinsyancey 2y agoYes, but many sites don't.