I ran into a problem that is really strange. This is in every browser.
Everything works correctly until you try to navigate to the section using the hash (for example, #contactUs on my page) ... try this url: http://mahersalam.co.cc/projects/2011/#contactUs
You will see that the SHIFTS 10px page returns up. if you remove the hash, it works again.
I have a wrapper on the page (#container) that has overflow: hidden, I did this to make sure that the scrollbars do not appear if the permission is changed. If you remove the overflow property, it works too.
I suppose that the movement happens through the place of the scrollbar, but since it is hidden, it remains only.
And does anyone know how to fix this problem?
Edit:
I found a solution, and I wrote it in the underders.
source
share