By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,199 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

In page anchor problem

P: n/a
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to. I then started removing the anchor links
to troubleshoot erroneous code. The more anchors I removed from the
bottom the move the problem moved upwards. Any help with this problem
would be appreciated.

Here is the page link so you can see what I am talking about:

http://admissions.usafa.af.mil/RR/CONFAQ.htm
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
PhillyFan wrote:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to.
http://admissions.usafa.af.mil/RR/CONFAQ.htm

Not sure what you mean, it all works fine for me. Well, the page ends
after the last answer, so the browser has nothing to scroll further down
to. That's why the anchor's target won't display at the top of the
viewport as it usually would. A workaround would be to artificially make
the page longer, but I'm not sure that is very attractive.

It would be helpful to have the question repeated, e.g. as a heading
above the answer.
Matthias

Jul 20 '05 #2

P: n/a
Els
PhillyFan wrote:
I have a page setup using anchors. For some reason not all
the anchors are working correctly. The last three anchors
do not start where they are supposed to. I then started
removing the anchor links to troubleshoot erroneous code.
The more anchors I removed from the bottom the move the
problem moved upwards. Any help with this problem would be
appreciated.

Here is the page link so you can see what I am talking
about:

http://admissions.usafa.af.mil/RR/CONFAQ.htm


You mean that if you click on "do you have a website", the
answer doesn't show exactly at the top of the window?

To make that happen, you would need to apply a large white space
at the bottom of your page, to let it scroll. The page simply
can't scroll up any more when the bottom of the document is
reached...

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -
Jul 20 '05 #3

P: n/a
Quoth the raven Matthias Gutfeldt:
PhillyFan wrote:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not
start where they are supposed to.

http://admissions.usafa.af.mil/RR/CONFAQ.htm


Not sure what you mean, it all works fine for me. Well, the page
ends after the last answer, so the browser has nothing to scroll
further down to. That's why the anchor's target won't display at
the top of the viewport as it usually would. A workaround would be
to artificially make the page longer, but I'm not sure that is very
attractive.

It would be helpful to have the question repeated, e.g. as a
heading above the answer.


Most definitely, the "questions" need to be repeated at the top of
their sections, most likely with <h2> markup. Many visitors will
simply scroll the whole page, and won't know when they have gotten to
a new answer. [I did not find an <h1> on the page, but there should be
one.]

The list of questions (table of contents) should be marked up as a
list: <ul><li>...

--
-bts
-This space intentionally left blank.
Jul 20 '05 #4

P: n/a
"PhillyFan" <ph*********@hotmail.com> wrote in
comp.infosystems.www.authoring.html:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to. I then started removing the anchor links
to troubleshoot erroneous code. The more anchors I removed from the
bottom the move the problem moved upwards. Any help with this problem
would be appreciated.

http://admissions.usafa.af.mil/RR/CONFAQ.htm
I see the page, and a couple of clicks on the questions seemed to
take me to the right answers. The very last question, when I clicked
on it, took me to a point in the middle of a preceding paragraph.
That's not unusual with browsers when an anchor is near the end of a
page: sometimes the prefer to show a full or nearly full page of
text.

P.S. There are five HTML errors, which you probably want to fix on
general principles, though I don't think they relate to the problem
you're reporting.
http://validator.w3.org/check?charse....htm&outline=x


One of the four is a size=+2, which should be size="+2" as far as
the syntax is concerned, but is probably not the right way to do
things on other grounds.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #5

P: n/a
"Matthias Gutfeldt" <sa************@gmx.net> wrote in
comp.infosystems.www.authoring.html:
PhillyFan wrote:
http://admissions.usafa.af.mil/RR/CONFAQ.htm


It would be helpful to have the question repeated, e.g. as a heading
above the answer.


Hear, hear! That would also solve the (apparent) problem of the
browser not jumping so the last answer is at the top.

I think it's http://useit.com that suggests when the user clicks on
a link, the target ought to have that title, or at least be
instantly recognizable as the same.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #6

P: n/a
Stan Brown <th************@fastmail.fm> wrote in message news:<MP************************@news.odyssey.net> ...
"PhillyFan" <ph*********@hotmail.com> wrote in
comp.infosystems.www.authoring.html:
I have a page setup using anchors. For some reason not all the
anchors are working correctly. The last three anchors do not start
where they are supposed to. I then started removing the anchor links
to troubleshoot erroneous code. The more anchors I removed from the
bottom the move the problem moved upwards. Any help with this problem
would be appreciated.

http://admissions.usafa.af.mil/RR/CONFAQ.htm


I see the page, and a couple of clicks on the questions seemed to
take me to the right answers. The very last question, when I clicked
on it, took me to a point in the middle of a preceding paragraph.
That's not unusual with browsers when an anchor is near the end of a
page: sometimes the prefer to show a full or nearly full page of
text.

P.S. There are five HTML errors, which you probably want to fix on
general principles, though I don't think they relate to the problem
you're reporting.
http://validator.w3.org/check?charse....htm&outline=x


One of the four is a size=+2, which should be size="+2" as far as
the syntax is concerned, but is probably not the right way to do
things on other grounds.

Thanks for all your help and suggestions I will add more whitespace to
the bottom of the section. As far as the errors they are not show
stoppers and can be fixed easily.
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.