Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

flash css question

Explorer ,
May 28, 2008 May 28, 2008
i am loading a .txt file into my flash and styling it with .css. easy enough...

i am having a major problem with the wrapping text around images. basically i dont want wrapping text. is there any way to disable text wrap, or is there any way to break to the next line after your image. (and yes i have tried <br>).

any suggestions welcome!!!

(side note: it seems like the word wrap is not a problem when you view my example on a windows machine, but it is on a mac. thats why i need to get this break to work so i can get around this issue.)
TOPICS
ActionScript
545
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 28, 2008 May 28, 2008
you should be able to use repeated line breaks or paragraphs to prevent text wrapping.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 29, 2008 May 29, 2008
i have done it that way, but that leads to another problem. i guess the font sizes for mac and pc are rendered a little differently because when i just use <br> over and over again i dont get the same result on both machines. (i get a larger space below my image on windows)

its also really odd because the image i am using spans across the whole text component area, and it still wraps one letter lines along the side of the image.

there has to be some solution...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2008 May 29, 2008
there are no great work-arounds, as far as i know. you should be embedding your font to get consistant results, though.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 29, 2008 May 29, 2008
ahhh ok. but when i embed the font i lose my <br> formatting. it looks like the repeated <br>'s dont work when you have:

my_txt.embedFonts = true;

any reason for that?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 29, 2008 May 29, 2008
but one <p> combined with the original <br>'s repeated does work. weird.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 29, 2008 May 29, 2008
try <P></P>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 29, 2008 May 29, 2008
awesome. thanks for the help kglad. i gotta send you a christmas card this year! (or a hanukkah or quanza card depending on your flavor of holidays)

thanks again!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2008 May 30, 2008
LATEST
you're welcome.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines