How can i set a zero page-margin on the titlepage?

I work with the following code:

@page :first
margin-top: 0cm /* Top margin on first page 10cm */
but nothing happens :(

6 answers

Your code is correct. If "nothing happens" something else must be wrong.

Can you please give me a working example for "PDF Space Export Title Page" and "PDF Export Stylesheet"?

I think there are some examples in the documentation.

If you don't get to grips with that you should try to describe what you want, what you did so far and in what form your results were not as expected. This way others can help you more easily.

I would like a title page without margins.

but I still have a white border on every side, why

this ist my PDF Export Stylesheet:

size:210mm 297mm;
margin-top: 1cm;
margin-bottom: 2cm;
margin-left: 2cm;
margin-right: 2cm;

@page :first 
size:210mm 297mm;
margin-top: 10cm;
margin-bottom: 0cm;
margin-left: 0cm;
margin-right: 0cm;

page-break-before: always;

background-color: rgb(0,58,98);

and this is my PDF Space Export Title Page:

<div class="titlepageheader">

    <div class="titlepageheader1">

Hi Sebastian,

have you already had a look at our Scroll PDF Exporter? Our add-on offers lots of additional options to configure your export. You could have a look at one of our blogposts for further information.



I think you must add a "padding:0;".

Try with

@page :first {
size:210mm 297mm;

If the page is completely white the border/margin is gone. If not you will see a yellow border around the page.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Tuesday in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

474 views 19 9
Join discussion

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