Login for Software or Support

CoffeeCup - HTML Editor, Flash & Web Design Software

Over 45,145,256 Downloads in 87 Countries

Tell a Friend About Our Cool Software

CoffeeCup Website Font Help Center

Sign In For Priority Support Forgot yours ?
More Flash Website Font Help: Other Resources: Contact CoffeeCup:

Send Snail Mail:
CoffeeCup Software
165 Courtland Street
Suite A, Box 312
Atlanta, GA 30303

Give us a call:
Toll Free: 866.734.HTML (4865)
Sales Hotline: 678.495.3480
Fax: 678.495.3481

How do I change the text alignment?

Each element you specify a font for is set to automatically left-align. You can change the alignment of your sIFR text by editing the all.css file and the javascript code that is pasted in the body section.

All.CSS Code

Each element has its own rule specified within all.css containing the size and alignment for your sIFR fonts.

h1 {
  text-align: left;
  font-size: 36px;
}
h2 {
  text-align: left;
  font-size: 24px;
}
which can be changed to
h1 {
  text-align: center;
  font-size: 36px;
}
h2 {
  text-align: right;
  font-size: 24px;
}

Body Javascript

Within the Body block of code, you'll need to change the sFlashVars attribute to set the alignment to either center or right aligned.

<script type="text/javascript"> //<![CDATA[ if(typeof sIFR == "function"){ sIFR.replaceElement(named({sSelector:"body h1", sFlashSrc:"ajile.swf", sColor:"#000000", sLinkColor:"#FF0000", sBgColor:"#FFFFFF", sHoverColor:"#0000FF", sFlashVars:"textalign=left"})); sIFR.replaceElement(named({sSelector:"body h2", sFlashSrc:"avatar.swf", sColor:"#FFFFFF", sLinkColor:"#3366FF", sBgColor:"#000000", sHoverColor:"#800000", sFlashVars:"textalign=left"})); }; //]]> </script>
can be changed to
<script type="text/javascript"> //<![CDATA[ if(typeof sIFR == "function"){ sIFR.replaceElement(named({sSelector:"body h1", sFlashSrc:"ajile.swf", sColor:"#000000", sLinkColor:"#FF0000", sBgColor:"#FFFFFF", sHoverColor:"#0000FF", sFlashVars:"textalign=center"})); sIFR.replaceElement(named({sSelector:"body h2", sFlashSrc:"avatar.swf", sColor:"#FFFFFF", sLinkColor:"#3366FF", sBgColor:"#000000", sHoverColor:"#800000", sFlashVars:"textalign=right"})); }; //]]> </script>

Was this article helpful?

Flash Website Font Help Index | Flash Website Font Homepage

Download Our Software:

... and don't forget about our Free Software

CoffeeCup Home Page | Software | Copyright & Legal | Site Map | © 1996 - 2008 CoffeeCup Software, Inc.