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
Community showcase
Posted Feb 06, 2019 in Confluence

Try out the new editing experience

Hi team, I’m Avinoam, a product manager on Confluence Cloud, and today I’m really excited to let the Community know that all customers can now try out the new editing experience and see some of the ...

793 views 33 5
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