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

How to add CSS stylesheet macro via wiki markup?

Hi Team,

I am trying to add CSS Stylesheet macro in a page via wiki format {style},  like any other macro but the same is not working. Can anyone guide me what i am doing wrong.

The markup i am trying to add is :-

{style}h2, .toc-macro ul li a {text-transform: capitalize;}{style}

But i am getting an error (unrecognized macro) whereas {code}, {toc} works perfectly fine.

Confluence version is 6.4.3

Regards,

Dev

 

2 answers

Dev,

I'm almost new to Confluence; I'm at the end of only my second week of working for this employer, and this is the first employer where I've used it.

I don't think you can implement a CSS stylesheet without actually licensing the CSS Stylesheet macro. I am looking to have my employer license this, too, so I've been all over the user forums about it.

Generally, it seems like you can't use the wiki markup to insert anything for which you don't have the right to run the macro.

 

Best of luck,
Pat O'Connell

Hi Dev,

I tried using the HTML macro instead of style macro and it worked. I was trying to color a button in the confluence. I used the below code in the wiki markup and it worked:

{html}<style>form.aui .button.active, form.aui .button:active, form.aui .button:focus, form.aui .button:hover, form.aui .button {background-color: #ff8c26 !important; color: #FFFFFF !important;}</style> {html}


Regards,
Raunak

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,195 views 6 6
Join discussion

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