Archived

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

Goodlife

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

Recommended Posts

Goodlife    122
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
Jesse Chounard    394
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
Jim_Ross    122
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