Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


You can somewhat solve this by using some css to specify the offset from the top the anchor should be. `scroll-margin-top`


Yes, but many sites don't.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: