Page 1 of 1

Anchor link to title delivers user to one line below title

Posted: Fri Oct 26, 2007 1:15 am
by Charlie Williams
Hello,
I have inserted <anchors> in topic titles..
<section id="introduction" xreflabel="introduction">
<title>About the administrator user and administrator password</title><anchor id="anchor.introduction"/>

and <links> around the text to jump to the topic title
<para>
<link linkend="anchor.introduction">About the administrator user and administrator
password</link>
</para>

In the DocBook HTML output in the browser, when you click a link, you end up one line below the title. Is there any remedy for this? I would like users to jump to the topic title.

Thanks,
Charlie

Posted: Tue Oct 30, 2007 12:45 pm
by sorin_ristache
Hello,

The anchor element is inserted in the Docbook XML document with one line below the title element so I think the HTML link jumps correctly with one line below the title. If you want to jump directly to the title you should use the value of the id attribute of the section element in the link element:

Code: Select all


 <link linkend="introduction">About the administrator user and administrator password</link>
Regards,
Sorin

Anchor jumps to one line below topic title

Posted: Thu Nov 08, 2007 7:59 pm
by Charlie Williams
Hello Sorin,

Sorry for the delay in replying. I've been on vacation for 9 days. I'll make changes to the markup as you suggested.

Thanks again for your help.

Regards,
Charlie