views:

1156

answers:

2

I'm having trouble finding usage/syntax for the text-align feature of sifr. This feature goes inside the flashvars parameter correct? So would it be something like:

sIFR.replace(fontname, { selector: 'h1', wmode: 'transparent', flashvars: 'textalign=center' });

I tried the above with no luck using r436 build.

A: 

Apparently you only need to edit the all.css file. Here's someone talking about this.

If you don't want to change the css styling of a root element, then you can specify what CSS selection you are applying your sifr is referring to with the sSelector

Ólafur Waage
A: 

You're confusing sIFR 2 and 3 syntax. flashvars no longer exists, for sIFR 3 specify it in the replacement CSS:

sIFR.replace(fontname, { selector: 'h1', css: '.sIFR-root { textalign: center; }' });

You can also specify background-color here, so you don't need to use transparency.

Mark Wubben