Page 1 of 1

How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Posted: Thu May 09, 2019 6:07 pm
by chrispitude
We use margin-top and margin-bottom to keep our elements spaced properly. For example, our H2s have a margin-top of 14pt to visually set them away from the preceding content.

The problem is, the margins get applied even at the very top (or bottom) of the content area on the printed page. If the @page margins are 1in all around and an H2 is the first element on the page, then it's pushed 14pt down from that 1in top margin.

How do I suppress margin from being applied at the top and bottom of the page content bounding box?

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Posted: Mon May 13, 2019 5:26 pm
by chrispitude
I haven't been able to file a solution, so I filed a support request. I'll update this thread with the results.

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Posted: Tue May 14, 2019 3:48 pm
by Dan
Hello Chris,
This is interesting, than you for reporting it. We will try to find a solution.

Many regards,
Dan

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Posted: Wed May 15, 2019 3:48 pm
by Dan
We found something, we could use the space-before and space-after FO attributes instead of margin-top and margin-bottom in the intermediate FO file. We will notify you when we have a build.

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Posted: Wed May 15, 2019 7:17 pm
by chrispitude
Dan wrote:
Wed May 15, 2019 3:48 pm
We found something, we could use the space-before and space-after FO attributes instead of margin-top and margin-bottom in the intermediate FO file. We will notify you when we have a build.
This sounds very promising - thank you!!

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Posted: Thu May 16, 2019 3:22 pm
by Dan
We have made the necessary changes. The fix will be available in oXygen/Chemistry 21.1.

Thank you for reporting this issue, the page layout has improved!

Many regards,
Dan

Re: How do I suppress margin-top/margin-bottom at the top/bottom of the content bounding box?

Posted: Fri May 17, 2019 3:49 am
by chrispitude
Thanks Dan. We're one step closer to the commercial processors. :)