You are here: Re: Can't quite get internal linking working... « HTML « IT news, forums, messages
Re: Can't quite get internal linking working...

Posted by Jonathan N. Little on 02/06/07 15:12

jim wrote:
> You've almost got it there Gary...
> ==========================================
> Instead of this: <h1 id="heading1">Heading1</h1>
> use this: <a name="heading1"/><h1 id="heading1">Heading1</h1>


Gary: Disregard this. Yes you can create and anchor with:

<a name="anchorName"></a>

But and ID property will work as well and does not need the extra markup.

My guess why the page is not scrolling to the anchor is that the browser
does not need to. If the anchor is visible within the browser window
already and as in your example there is no content after the anchor the
browser will not scroll. Confirm this by adding more content after your

<h1 id="heading1">Heading1</h1>


BTW is your document XHTML or HTML? If the latter use
<br> and not <br />

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

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