style tag in Confluence 3 and 4

Trying to make sure our upgrade from Confluence 3.5 to 4.3 will go smoothly I need to wrap my head around the {style} tag.

We have

{style}
/*CSS*/
{style}

in 3.5. Doesn t work in 4.3. Replacement:

<style type=text/css">
/*CSS*/
</style>

Then I found that the Adaptivist Content Formatting macros expose a {style} too. Guess this *adds* functionality?

Thought I could use {xhtml-style} macro in 4.3 instead of the HTML <style>, but didn t work.

Thanks for any insight.

G.

1 answer

Hello,

I just wanted to touch base with you on this issue. I don't seem to be able to find mention of a {style} macro that comes pagaged with Confluence. It looks like you are trying to inject css into a given page. Why are you using a style macro versus an html macro?

You are right that the Adaptavist Content Formatting macro exposes a style macro. Are you trying to use this macro to do your styling? If so it may be the case that the migration task that updates all of the existing style tags into the 4.3 compatible version of this plugin is failing.

How many pages are you using this on? What is the functionality that you want to acheve? Maybe there is anther way we can acheive it.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

1,132 views 22 10
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