Today I'm going to talk about a rarely used but extremely useful CSS property, the word-wrap. You can force long (unbroken) text to wrap in a new line by specifying break-word with the word-wrap property. For example, you can use it to prevent text extending out the box and breaking the layout. This commonly happens when you have a long URL in the sidebar or comment list. Word-wrap is supported in IE 5.5+, Firefox 3.5+, and WebKit browsers such as Chrome and Safari.
CSS: Word-Wrap Property (view demo)
You can specify either normal or break-word value with the word-wrap property. Normal means the text will extend the boundaries of the box. Break-word means the text will wrap to next line.
.break-word {
word-wrap: break-word;
}

Interesting..it doesn’t appear in dreamweaver, never knew it existed!
Thanks for sharing this!
Oh c’mon. If only we were all happy and wonderful in CSS-support-land.
” Word-wrap is supported in IE 5.5+, Firefox 3.5+”
Notice a gap there? Yeah, Firefox had some major issues with this for a number of versions. Here is a much better link: http://snipplr.com/view/10979/css-cross-browser-word-wrap/
And even that’s not fool-proof.
I love these little pointers! Keep them comin’! :)
Copying Birgit Zimmermann, this will be very useful, thanks!
websitereckon.com
free check your website worth , daily pageviews, daily earning………etc.
websitereckon.com
RE: Joe DiSalvo
I think for user generated content this is the cookie cutter solution. As for a reset – I’d rather not until browsers start adding in hypthens or elipsis to suggest the text has more: See Chrome’s use of “text-overflow:ellipsis;” (http://www.blakems.com/archives/000077.html)
but opera do’t support this property~
I have never used that one. I usually use “text-align: justify;” but it does not break the word.
Thanks for this tip. I didn’t know about it before but I will use it in the future.
I will most definitely be picking up on this one.
Thanks for sharing this. But we usually use anchor links with title property instead of the links like this.
Pretty cool concept, but can’t used in most common case of displaying code on the screen. When used in conjunction with <pre> tag, couldn’t get wrap to work. ;(
the same effect as the a “wide” and align the value “text-align: justify” there ? :S
very useful property. I will use in my new projects
Thanks. Was having issues with a twitter feed that will benefit from this.
I was wondering from a long time for such a tag in CSS. It will surely help me in my designing because I am a Joomla expert but a newbie to CSS. Thanks for sharing. Keep updating more new tips & tricks for CSS
Really useful tutorials! I m new in this field and trying to put pdf & text file in CMS . If i can get some information that will be really awesome.
Thanks
Sonia
Really useful, Thanks for the tip.
Very interesting, thanks for sharing this!
Gracias por el aporte, muy interesante