How do I create a two color title in a panel macro?

Lena Bosheh January 23, 2017

Am I able to create a title with two text colors in the panel macro in Confluence? If so, how? Also, can I change the font? How?

1 answer

2 votes
Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 24, 2017

You can do it with a modified panel:

image2017-1-24 14:0:45.png

  1. Add the Panel macro
  2. Add the Div macro to the body of the Panel macro
  3. Add the "head" text of the "panel" to the body of the Div macro and color it however you want
  4. Add some CSS to the Styles field of the Div macro

    background: yellow; position: relative; left: -10px; top: -10px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; width: 110%;
  5. Add whatever text to the body of the Panel macro (below the Div macro)

To change the font, add the font designation to the CSS in the Styles field, e.g.:

font-family: Times;

So,

background: yellow; font-family: Times; position: relative; left: -10px; top: -10px; padding-left: 10px; padding-top: 5px; padding-bottom: 5px; width: 110%;

 

image2017-1-24 14:9:46.png

 

Lena Bosheh January 30, 2017

Thank you so much! Would this also allow me to paste a logo in the header? Like a banner logo?

 

L

Milo Test
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2017

Yes.

Rob Woodgate
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 30, 2017

Hi Lena,

Adding a header image is used as an example in Atlassian's Basic Styling Tutorial.  That should point you in the right direction.

Lena Bosheh February 6, 2017

Thank you!

Lena Bosheh February 6, 2017

But can that same method/CSS be used in the context of a panel macro? If so, how? Do I find the panel CSS and include it there? Thanks again.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events