Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Goodlife

[java] How d'ya stop the wrapping!?!

This topic is 6939 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all-- I wrote a java app for my browser-- a sort of teaser on my web page. Underneath it is a caption. If I shrink the web page, the java applet gets clipped, but the caption, which is straight HTML, gets wrapped onto the next line! Is there some sort of tag, or something I can do to make the text run off the edge of the web window? Not strictly a java question, I know, but it would help my java app! Thanks in advance! -- Goodlife ----------------------------- Think of your mind as a door on a house. Leave the door always closed, and it's not a house, it's a prison. Leave the door always open, and it's not a house, it's a wilderness-- all the vermin creep in.

Share this post


Link to post
Share on other sites
Advertisement
How about the pre tag?

It forces the text to be formatted in the same way it exists in the html file.

/pre would turn it off again. (You need to put them in < > braces, but I couldn''t here, or the forum would have stripped out the tags.)

Jesse Chounard

Share this post


Link to post
Share on other sites
use &nbsp; instead of spaces in between your words. that will ensure that the browser won't break the text onto different lines. This line uses non breaking spaces to ensure that everything is on one line.



Edited by - Jim_Ross on 4/26/00 12:21:06 AM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!