Top of page

D

Deaf Lugs

I have some very long html pages so I'm using <a href="#top"> at
intervals to get to the top of each page. The trouble is that there is a
php toolbar at the top of each page and, of course. the page always
fails to go up past it so it isn't quite the 'top of the page'

Anyone know of a way round this so that it does go to the correct top of
the page and not under the toolbar?

--
TTFN
Jim


'Interdum feror cupidine partium magnarum Europae vicendarum!'
 
J

Jonathan N. Little

Deaf said:
I have some very long html pages so I'm using <a href="#top"> at
intervals to get to the top of each page. The trouble is that there is a
php toolbar at the top of each page and, of course. the page always
fails to go up past it so it isn't quite the 'top of the page'

Anyone know of a way round this so that it does go to the correct top of
the page and not under the toolbar?

Have the php inserted code positioned AFTER the "top" anchor. WAG since
you failed to provide a URL to the problem in question.
 
J

Jukka K. Korpela

I have some very long html pages so I'm using <a href="#top"> at
intervals to get to the top of each page. The trouble is that there is a
php toolbar at the top of each page and, of course. the page always
fails to go up past it so it isn't quite the 'top of the page'

Anyone know of a way round this so that it does go to the correct top of
the page and not under the toolbar?

Workaround: <a href="#">.

Better workaround: remove the anchor name "top" from its current place
of definition, and use <body id=top>.

Solution: Stop creating the problem. "Back to top" considered harmful;
arguments: http://www.cs.tut.fi/~jkorpela/www/totop.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top