Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

center text in html textfield 1

Status
Not open for further replies.

ThomasJSmart

Programmer
Sep 16, 2002
634
im importing text into flash into an html-formatted textfield.

im trying to get the align function to work.
iv tried <div align=&quot;center&quot;></div> and <div align=&quot;right&quot;></div>

but it doesnt seem to be doing it.

any help apreciated,
thomas

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
from the timeline

temp = &quot;<p align='center'>This is a test of centering text</p>&quot;;
temp += &quot;<p align='right'>This is a test of right align</p>&quot;;
temp += &quot;<p align='left'>This is a test of left align</p>&quot;;


from text file much the same

myText=<p align='center'>my text</p>
 
also the target=&quot;_blank&quot; part of an <a href=&quot;adres&quot;></a> wont work in an html-formatted text field in flash (MX).

any help apreciated,
thanks,



I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
ah, so i just use the P tag instead of div.
i'll try it :)

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
wicked, that did the trick,
many thanks.

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
i got the target thing working too,
that was a bad on my end.



I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top