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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@top-center should be correct.
You need to give more information:
Complete code, what does "not react" mean?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 */
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.