You are here: Re: #top anchor doesn't work in FF « HTML « IT news, forums, messages
Re: #top anchor doesn't work in FF

Posted by Jonathan N. Little on 10/31/07 19:02

Bernhard Sturm wrote:
> Jonathan N. Little wrote:
>> sturm wrote:
>>> Jonathan N. Little wrote:
>>>>
>>>> <!-- REMOVE: <div id="top"><a name="top"></a></div> -->
>>>>
>>
>> See I show it *all* commented out
>>
>
> yes... but if there's no anchor for #top what will the UA do? According
> to the HTML-specs this is not defined. Only IE interprets a <a
> href="#top">Top</a> as a pointer to the top of the page, all others UA I
> tested do ignore it if the appropriate anchor is missing.
>
>>>>
>>>> And either change following DIV's to "top" or change your "to top"
>>>> links' hrefs to "#accessibility".
>>>>
>>>
>>> But then they wouldn't be working as #accessibility is not designed
>>> to be shown on a visual UA.

I think we have a failure to communicate here. My point is rather than
make an empty little DIV with a anchor (old way)

<div><a name="top"></div>

Just find some element on the top of your page, any element, does not
matter, just has to be at the top of your page. It may different
depending on each page's contents. Then if you wish to keep the anchor
name "top" than make then make the ID of that element "top" and it will
create a "top" anchor.

>>
>> Then pick something at the top of the page that *is* shown on the
>> visual UA:
>>
>> <div id="outer">
>> ...
>>
> which would then irritate text only UA users, as they are no longer
> taken to the top of their page, which is at #accessibility :-) sometimes
> one has to trade off things...
>


But <div id="outer"> *is* at the top of your page! So a link:

<a href="#outer">To the top</a> would take them to the top of the page.
There is nothing magical about the name "top", just it's location...


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация