Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Word Wrap Text In Div.


24 replies to this topic

#21 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 22 April 2010 - 04:49 PM

This is a no-brainer, hereWord Wrap Text In Div.

Hell yeah, that is a big one.

See, when a word is too long, like bbbbbbbbbbbbbbbbbbbb.. (and on and on) it WILL get ugly and stretch to the right.

But here's the solution:

just put { word-wrap: break-word } in your CSS! and it works ok.

-reply by Constantine

 



#22 Guest_iBreak_*

  • Guests

Posted 22 November 2010 - 08:42 PM

Just tried white-space:normal; It WORKED!!! Thank you so much!!!

#23 Guest_ume_*

  • Guests

Posted 24 March 2011 - 06:19 PM

i have table rows dynamically added..the text in the table cell comes from a xml file and due to the length of the text (its a URL) it stretches the width of the cell and spoils the display. I tried defining the cell style in css with the white-space:normal as previously said by someone. But it does not work here Can anyone help?

#24 Guest_TommyMusicGlue_*

  • Guests

Posted 16 September 2011 - 02:28 PM

white-space: pre; /* CSS 2.0 */
white-space: pre-wrap; /* CSS 2.1 */
white-space: pre-line; /* CSS 3.0 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
white-space: -moz-pre-wrap; /* Mozilla */
white-space: -hp-pre-wrap; /* HP Printers */
word-wrap: break-word; /* IE 5+ */

#25 Guest_Corpus-Khu_*

  • Guests

Posted 11 October 2011 - 07:46 AM

I think all that is necessary is.. text-align:justify; or wrap paragraph tags around the text




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users