The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

2 votes
Answer accepted
David at David Simpson Apps
Atlassian Partner
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 Champions.
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 Champions.
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 Champions.
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).

TAGS
AUG Leaders

Atlassian Community Events