Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

PDF Export css - add a left hand strip

Anna Paaske May 5, 2023

I need to add a solid colour strip that to the left hand side of the document. The strip needs to be around 7mm wide and 100% tall and have no top, left and bottom margins. 

Is this possible? How can I achieve this?

Thanks!

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 8, 2023

Hi @Anna Paaske 

Try adding this to your pdf stylesheet:

@page 
{
margin: 0.5in;
padding: 1em;
border-left: 6px solid green;
@top-left
{
content: element(header);
}
@bottom-left
{
content: element(footer);
}
}

The result will be something like this:

pdf export.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events