How do I know which CSS tags are applied during PDF export?

I'm trying to customize the PDF export using the CSS stylesheet.  The problem I'm running into is that CSS rules I put in the stylesheet don't seem to be having the expected effect.  For example, when I use the Chome "Inspect Element" panel to look at IDs and CLASSes in the HTML, I see that all page titles have an ID of "title-text".  But when I change the properties of that ID, the exported PDF applies it to areas that do NOT have that ID in the "Inspect Element" panel.  

So how do I know which CSS IDs and CLASSes are being applied to which parts of the exported PDF?

#title-text
{  
    font-size: 48px;  
    page-break-before: always;  
    color: green;
}

(this CSS rule changes the color and size of "Content Report Table" macros in the exported PDF but not the title text that has ID=title-text in the HTML)

Untitled.png

No effect...

Untitled2.png

1 answer

When I try, the following works: 

.pagetitle {   
font-size: 48px;   
page-break-before: always;    
color: green;  
}

Why yours doesn't, I don't know. Logically thinking I would come up with the exact same thing as you.

 

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,932 views 27 12
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