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

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

The {style} macro doesn't seem to work

This is my test page

{style}
ppp{
text-align: center;
color:#FF0000;
font-size-adjust: 2;
}
{style}


* this doesn't work:
{span:style=ppp} Hello world{span}


* this (sort of -- text-align property doesn't) works :



{span:style=color:#FFF000; font-size-adjust:2; font-family:serif; text-align:center } Hello distinguished citizens of the world {span}

Can anyone explain why the style macro isn't working?

2 answers

1 accepted

Likely you need to do this instead:

{style}
.ppp { /* the dot/period denotes a class selector */
text-align: center;
color:#FF0000;
font-size-adjust: 2;
}
{style}
{span:class=ppp} Hello world{span} 

Yep, that should do it - not the 'class' parameter for {span} also, very important! :)

Sorry, but I don't understand this comment -- would you clarify?

Is it possible to do this in Confluence 4.0 still? I am not able to currently.

That will depend on if Adaptavist has released their update for the Complex Formatting Plugin. Check with them is my suggestion.

Your changes worked -- I was following an example (that I can no longer find).

Suggest an answer

Log in or Sign up to
This widget could not be displayed.
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

545 views 5 17
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