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?
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! :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it possible to do this in Confluence 4.0 still? I am not able to currently.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your changes worked -- I was following an example (that I can no longer find).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.