Single Page PDF Export with Title Page Edited

With the code below I'm getting a simple title page. I want to add an image too above the page title. How would I go about adding the image to the title page?

.pagetitle h1 { 
font-size: 36px !important;
margin-left: 250px !important;
padding-top: 300px !important;
page-break-after:always;
}

@page {
@top-left
{
content: element(runningheader);
}
@bottom-left {
content: "Company";
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 10pt;
}
@bottom-right {
content: "Page " counter(page) " of " counter(pages);
font-family: ConfluenceInstalledFont, Helvetica, Arial, sans-serif;
font-size: 10pt;
}
/* Generate border between footer and page content */
border-bottom: 1px solid black;
border-top: 1px solid black;
}

 Also, how would I add a header to the pages? I want the header to have the page title in it.

 

2 answers

Adding an image to the page title:

.pagetitle h1 { 
font-size: 36px !important;
margin-left: 250px !important;
padding-top: 300px !important;
page-break-after:always;
background-image: url('/download/attachments/.../bgimage.jpg');
background-repeat: no-repeat;  
background-position: 150px 100px; /* distance from left and top */
}

Adding a header with the page title in it:

.pagetitle h1 { 
position: running(runningheader);
}

@page {
@top-left  {
content: element(runningheader);
}
}

Problem is, "Adding an image to the page title" and "Adding a header with the page title in it" can't be used together because they both do the same thing, they take the content of ".pagetitle h1" and move it to another place (the title page or the header).

And if it has been moved with one of them, it is not there anymore for the other one.

Hi Steffen,

Can you tell me how to put the title in the middle?

@top-center does not react.... 

Thanks.

@top-center should be correct.

You need to give more information:
Complete code, what does "not react" mean?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

212 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you