Jump to content

  • Log In with Google      Sign In   
  • Create Account


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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Goodlife   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 April 2000 - 06:17 AM

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.

Sponsor:

#2 Jesse Chounard   Members   -  Reputation: 394

Like
Likes
Like

Posted 25 April 2000 - 06:41 AM

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

#3 Jim_Ross   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 April 2000 - 07:54 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS