Let's say I have a web page (MYPAGE.HTML) and
this webpage is constrained in width.
This web page has 200 lines of text.
I have an anchor on line 30
Expand|Select|Wrap|Line Numbers
- <a name="myanchor">
Expand|Select|Wrap|Line Numbers
- <a href="#myanchor">go to anchor</a>
is now at the top of the browser window.
Here is the question.
I do not want line 30 to come to the top of the browser. I want it to come up to
the middle of the browser page (or any other point lower that the top of the page)
Say for example 50 pixels from the top.
I cannot do it by moving the anchor point to another line or adding another anchor point. I must do it using CSS or Javascript or both.
Don't be concerned about why, please, it will just complicate the question.My biggest problem so far has been explaining the problem!
But if you must know see this thread
Thanks