• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Line break for a sentence without spaces

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic