This question was asked once on Bytes.com, but the 'asker' was Amateur to say the least and the question was never fully answered.
So here is the question. I am designing a page containing a listing of 'entries.' The title of the entry is linked and looks like shown below:
[HTML]<href="#e1" name="e1">Text</a>[/HTML]
The expected behavior of this is for the page to 'Jump' down to the element named 'e1' (in this case, itself), however, instead the entire page moves upward. The Header, navigation and everything above the element named 'e1' is now in the negative numbers.
It is as if this simple bahavior is making the element's parent container positioned absolute and then applying a negative value to the top, (example: top:-500px).
I have been making websites for quite a long time and never had any problem with this type of bahavior, nor have I ever seen this happen nor do I know what would ever cause this to happen. I have not debugged HTML to validate (the doctype is xhtml strict), as that could be the problem, but in my experience that should not effect the behavior of browser functionality.
The URL to see this quirky behavior in action is here
Very Odd Anchor Fragment Behavior
(Click on the title below the brown horizontal bar to replicate the issue)
(HTML, Doctype or CSS issue?)
I appreciate any advice you can offer, thanks for reading!