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

The {style} macro doesn't seem to work

Richard Crane July 25, 2011

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

2 votes
Answer accepted
David at David Simpson Apps
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
July 25, 2011

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} 
David Peterson
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.
July 25, 2011

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

Richard Crane July 25, 2011

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

Phillip Ponzer [Cprime]
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 18, 2012

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

David Peterson
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 19, 2012
That will depend on if Adaptavist has released their update for the Complex Formatting Plugin. Check with them is my suggestion.
0 votes
Richard Crane July 25, 2011

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events