Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

White space above and below headings in PDF exports.




I'm trying to remove bunch of white space above and below text headings but I can't seem to figure out what in the CSS I should be changing. I thought it could have been the margins or padding or so, but whatever I try to change, there's still huge gaps.


This is how it looks in confluence:
(spacing is a lil' weird here too, but it doesn't matter since it's for a pdf anyway)




And this is how it looks in the pdf export:

(Note the weird gaps and the extreme white space if h4 comes after anything)



This is what the css looks like:


I'm not very good with CSS. I'm sure that there's something I need to change elsewhere  in the sheet, but I have no idea what. Could anyone help me out with this? Thanks!


ETA: I changed the margins to -100 and literally nothing changed in the PDF. I'm at a loss here. What am I doing wrong?

1 answer

1 accepted

0 votes
Answer accepted

Fixed by simply not using confluence anymore and moving to something else. This thread can be closed.

Suggest an answer

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

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

586 views 0 13
Read article

Atlassian Community Events