aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Line break for a sentence without spaces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Line break for a sentence without spaces" Watch "Line break for a sentence without spaces" New topic
Author

Line break for a sentence without spaces

Rajesh Santhanakrishnan
Greenhorn

Joined: Jul 16, 2010
Posts: 15
Hi ,

The display of a value is getting out of the screen whenever i type a long sentence without any spaces.
There is a possiblity that the user might enter the below sentence with comma & without any spaces.

Eg: The different type of fruits are Guava,Mango,Papaya,Banana,Orange,Grapes,Starwberry,....

Since the highlighted words is without any spaces the alignment goes beyond the fieldset.

I tried with options <p> </p> tag,line-break: strict style ,white-space:pre-wrap;

Could you please help me on this.


Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1527
Rajesh Santhanakrishnan wrote:Hi ,



How many divs are there totoally? Why not have a horizontal scroll pane ? Or you are trying something else.



Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4392
    
    8

This may be a silly question, but...can you not just add spaces? If it's a sentence, it's conventional to have a space after the comma anyway.
 
wood burning stoves
 
subject: Line break for a sentence without spaces