John,
the only solution I can offer is to use javascript with a gracefully degrading 
experience for the JavaScript disabled. If you are using this on more than one link 
it's probably worth putting it into a function. And it works on everything except 
Mac/IE (5.0,5.1 and 5.2) which still goes 'almost to the top':
<a href="#top" onclick="if(navigator.userAgent.indexOf('MSIE') == -1){ 
window.scrollTo(0, 0); return false;}">Back to top</a>

Grant

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of john
Sent: Wednesday, 13 October 2004 11:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] help with fixed positioning in IE



After applying this CSS hack to one of my sites, my "back to top" link 
doesn't do anything at all in Win/IE6 (I have an id=top in the BODY tag).

Then there's the fact that part of the scrollbar is hidden beneath the 
header...but I think that was already mentioned.

Any suggestions on the "back to top" link?

~john
_________________________
Dr. Zeus Web Development
http://www.DrZeus.net
"content without clutter"




Focas, Grant wrote:
> For me it goes to the top but not quite.
> Safari 1.02 does make it go higher than Netscape 7.2 or IE5.2 but it
> still doesn't go right to the top.
> For instance, in Netscape 7.2 on Mac the back to top takes me back to
> 'Adapted from fixed positioning' not to 'Fixed header and footer'.
> This isn't too bad when the header is only 60px but if it were 120 the
> difference would be quite a worry.
> 
> Grant
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Nick Gleitzman
> Sent: Tuesday, 12 October 2004 3:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [WSG] help with fixed positioning in IE
> 
> 
> On 12 Oct 2004, at 2:55 PM, Focas, Grant wrote:
> 
> 
>>Using a body id will not work because the top of the page is alsways
> 
> in
> 
>>view. It is the top of the content div which is hidden.
> 
> 
> Well, in that case I've misunderstood what you're trying to do with the 
> link. In all my Mac browsers (IE5.2, Safari 1.2, Netscape 7.2, Firefox 
> 0.9) the link 'resets' the page to the way it looks when it frist loads 
> - which is what I always have my 'top' links do... - ?
> 
> N
> ___________________________
> Omnivision. Websight.
> http://www.omnivision.com.au/
> 
> ******************************************************
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> ******************************************************
> 
> **********************************************************************
> This message is intended for the addressee named and may contain
> privileged information or confidential information or both. If you
> are not the intended recipient please delete it and notify the sender.
> **********************************************************************
> ******************************************************
> The discussion list for  http://webstandardsgroup.org/
> 
>  See http://webstandardsgroup.org/mail/guidelines.cfm
>  for some hints on posting to the list & getting help
> ******************************************************
> 
> 
> 
> 

******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************
******************************************************
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list & getting help
******************************************************

Reply via email to