Els wrote:
Mason A. Clark wrote:
On Fri, 08 Jul 2005 07:51:27 GMT, Mason A. Clark <ma*************@ix.netcom.com>
wrote:
LAST WORD(s):
1. MSIE6 and Firefox will go to the top of the page on
command <a href="#top">go upsy</a> even if
there is NO name="top" or id="top"
They know what a "top" is :-)
Opera does not.
2. None go to the top or anywhere just for <a href="#foo">
with no "foo" target (unless "foo" is "top").
3. Opera will not find <a name="foo"></a> or any other
name if there is no content in <a></a>
4. MSIE6 and Firefox do not require that content.
5. id="foo" is equivalent to name="foo"
6. In this business don't believe anything. test test test
(note: when testing clear the caches)
Mason C If no questions, class is excused.
I'm required to admit:
After *many* tests of the above on a particular (valid) web page of
mine I tried to make a bare-bones simple demo page (in response to
a claim by Els) and Opera finds <a name etc...></a> with no content.
I resign. No, I'll post the actual problem. A validated page:
http://masonc.home.netcom.com/1template-1.html
Opera will not return to the top -- look for the link at the bottom.
Yup, noted.
I don't know the cause of it exactly,
I found it now though.
It's because of the item right below it has position:fixed.
If you take out position:fixed, the link works.
I reckon that since that div#topbar is fixed at the top of the window,
Opera reckons that you can't go any higher than that.
And apparently, Opera only recognizes the anchor to be in the actual
place in the body, when there's something in it. IMO that's a bug in
Opera.
If you take <a name="top" id="top"></a> and put it in the first cell
of the table, the link works. Obviously the page then doesn't go to
the actual top of the document though. If you link to the id of the
body element, it works too, but that would mean you'd have to change
the back to top link for every page to be in accordance with the body
id of that page, and that it wouldn't work in some really old browsers
which need "name" instead of "id".
--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Deep Purple - Child In Time