Heading2 style with anchor

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Heading2 style with anchor

Unread postby mbgg » Mon Apr 02, 2018 2:45 pm

I have series of header lines in a topic to which I have applied the "Heading2" style. If I add an anchor to the heading line, the height of the header expands to about 5 lines (see attached file) in the CHM file.

The problem occurs only in this topic. I have done exactly the same in every other topic in the project without any problems.

problem1.jpg

I am using Version 7.3.5 Build 4434
:frustration:
You do not have the required permissions to view the files attached to this post. This may mean that you can't view them at all, or it may just mean that you need to log into the forum to view them.
Michael

Version 7.3.0 - Build 4180
mbgg
 
Posts: 112
Joined: Sun Oct 22, 2006 3:42 pm

Re: Heading2 style with anchor

Unread postby Tim Green » Tue Apr 03, 2018 11:06 am

Hi Michael,

This is definitely not a general problem, it must have something to do with your style or something else in your specific topic or project. Make sure that the anchor is the first item in the paragraph on the left, before any other character, and select the entire paragraph AND the anchor and reformat it with the style. If you continue to have problems please mail a small sample project illustrating the problem to support AT ec-software.com (replace the AT with @) and we will check it for you. :)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
 
Posts: 20370
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: Heading2 style with anchor

Unread postby mbgg » Tue Apr 03, 2018 11:20 am

The anchor is in the header line (to the left of "Pen Width)". If I move the anchor to the paragraph (to the left of "Specify the pen width..") and reformat, then the .chm shows several blank white lines between the header and the paragraph. The file that I will send shortly will show this situation.
Michael

Version 7.3.0 - Build 4180
mbgg
 
Posts: 112
Joined: Sun Oct 22, 2006 3:42 pm

Re: Heading2 style with anchor

Unread postby Tim Green » Tue Apr 03, 2018 1:26 pm

This is caused by a small error in the skin you are using that only has an effect in topics without a header. If the header is there the script for the non-scrolling header makes the necessary change automatically. To correct it, please do the following:

1) Open the .hmskin file you are using in Help+Manual

2) In the Project Explorer, go to Configuration > HTML Page Templates > Default and locate this line of code:

Code: Select all
a.hmanchor { display: inline-block; margin-top: 4em; padding-top: 4em }

3) Change the margin-top: 4em; setting to margin-top: -4m;, like this:

Code: Select all
a.hmanchor { display: inline-block; margin-top: -4em; padding-top: 4em }

After that the problem will go away.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Tim Green
Site Admin
 
Posts: 20370
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany

Re: Heading2 style with anchor

Unread postby mbgg » Tue Apr 03, 2018 2:11 pm

Hi-
I didn't notice that there was no topic header and I don't know how it disappeared. I restored the header to the topic and the problem was solved.
Thanks,
Michael
Michael

Version 7.3.0 - Build 4180
mbgg
 
Posts: 112
Joined: Sun Oct 22, 2006 3:42 pm


Return to Help & Manual 7 Forum

Who is online

Users browsing this forum: No registered users and 8 guests

cron