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
[Back to original message]
|