PDA

View Full Version : <center> for htmlText


defmars
12-19-2005, 04:58 AM
I hava an xml file loading values in textboxes. In order to avoid problems with apostrophes, I use .htmlText. However for some reason, I can't get the text to be centered, I've tried:

_root.myText.htmlText ="<center>"+this.childNodes[0].childNodes[0].childNodes.toString()+"</center>";


why is it not working ? do you know any way around it ?

oldnewbie
12-19-2005, 12:44 PM
Use <p align='center'> instead...

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14808