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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to style in a colour block header and footer to my customised pdf? Edited

Hi there,

 

Is it possible to style in a colour block header and footer to my customised pdf? I cannot find anything to do this?

Currently, my page has a colour block at the top which is what I want, but it's not 100% of the width. As the image below.

I've tried adding a bit of HTML in the markup work and styling that, but that doesn't work.

This is the code I have:-

body,p,li,td,table,tr,.bodytext,.stepfield
{
font-size: 12pt;
font-family: Helvetica, Arial, sans-serif;
line-height:1.5;
font-weight:300;
color: #000;
margin:0;
padding:0;
}

/*hide the related content links in the PDF*/
[data-macro-name=contentbylabel] {
display: none;
}

h1 {
font-size: 24pt;
}

h2, h3, h4 {
font-size: 14pt;
margin-top: 25px;
}

hr {
page-break-before: always !important;
}

/* Any other page-specific rules */
@page {
/*A4-sized pages in landscape orientation are 297 mm wide by 210 mm long*/
size: 210mm 297mm;
}

@page:first {
margin: 0;
padding:0;
width:100%;
/* Header - Page Title */
@Top-center {
content: element(runningheader);
background-color: #1B4777;
width:100%;
margin:0;
padding:0;
}

Screenshot 2020-10-12 at 19.21.15.png

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence Cloud

Get to know the Confluence team!

Go “behind the screen” to meet some of the Confluence Cloud team. In this video series, we tackle some of the hard-hitting questions you never knew you wanted the answer to!  Meet some of the ...

236 views 0 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you