Re: PDF title page backgorund-image alignment
Posted by
mojavelinux on
Mar 05, 2020; 8:59pm
URL: https://discuss.asciidoctor.org/PDF-title-page-backgorund-image-alignment-tp7726p7727.html
Center alignment is now the default. You can control it using the position attribute. It accepts the same values as the background-position property in CSS.
To place it at the center top, use:
position=top
To place it at the top left, use
position=top left
Cheers,
-Dan
On Thu, Mar 5, 2020 at 9:12 AM ascju [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
Hi all,
I have built a custom style to use for PDF rendering of my documentation.
The title page has two images ... one at the top and one in the center of the title.
title_page:
align: left
logo:
align: hiscale_front
image: image:../images/templates/title.png[pdfwidth=65%]
top: 55%
background_image: image:../images/templates/title_top.png[pdfwidth=15%]
After reinstalling my laptop (I guess new version of asciidoctor-pdf), the top image (used backround-image for this) is placed also in the center of the title page.
Any idea how to get it back to the top?
Thanks!
Chris
--