Remove the blank space when exporting several pages at a time

Sergio Lema
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 23, 2025

Hello, 

 

I am trying to get rid of the blank spaces when exporting several pages at a time and the content of these pages is not enough to fill the whole A4 page.

In example, an introduction page with only a title and a brief description of the site. When exporting this into PDF, Confluence generates a page with the title and just one or two lines of content. So if other pages are exported within the same document, we will have independent pages for each confluence page, instead of using the blank space left on the previous page. 

 

I have tried to fix this by using the below CSS code, as stated in some of the Atlassian forums, however it didnt work.

 

 

.pagetitle

{

page-break-before: avoid;

page-brake-after: avoid

}

 

Any idea on how this can be achieved? 

1 answer

0 votes
Mirek
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 28, 2025

Hi @Sergio Lema 

If I see correctly your CSS code is having a typo.. brake instead of break

.pagetitle { 
page-break-before: avoid;
page-brake-after: avoid
}

so try this..

.pagetitle { 
page-break-before: avoid;
page-break-after: avoid;
}

and see how it goes

 

 

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events