• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Line break for a sentence without spaces

 
Rajesh Santhanakrishnan
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajesh Santhanakrishnan wrote:Hi ,



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


 
Matthew Brown
Bartender
Posts: 4566
8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic