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 15:11

sturm wrote:
> Jonathan N. Little wrote:
>> Harlan Messinger wrote:
>>
>>> The solution is to take the ID off the DIV and stick it in the anchor:
>>>
>>> <div><a id="top" name="top"></a></div>
>>
>> Or better yet delete the superfluous empty DIV and empty A and
^^^^^^^^^^^^
>
> The page will not validate if the <a id="top" name="top"></a> is not
> nested within a div :-( I tried that already. Seems as HTML-strict will
> not tolerate a structure like <body> -> <a>


Of course not and inline element must be in a block element. I said
delete both.
>
>>
>> <!-- REMOVE: <div id="top"><a name="top"></a></div> -->
>>

See I show it *all* commented out

>> <div id="accessibility"> ...
>>
>> 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.

Then pick something at the top of the page that *is* shown on the visual UA:

<div id="outer">
....


--
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

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