Anchor link to title delivers user to one line below title

<oXygen/> general issues.
Charlie Williams
Posts: 24
Joined: Thu Oct 18, 2007 7:17 pm
Location: California

Anchor link to title delivers user to one line below title

Post by Charlie Williams » Fri Oct 26, 2007 1:15 am

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

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Tue Oct 30, 2007 12:45 pm

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

Charlie Williams
Posts: 24
Joined: Thu Oct 18, 2007 7:17 pm
Location: California

Anchor jumps to one line below topic title

Post by Charlie Williams » Thu Nov 08, 2007 7:59 pm

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

Post Reply