Posts Tagged ‘CSS Property Word-Wrap: Force Text to Wrap’
When working on a blog I found that some of the links on the “Categories” list were breaking the layout and one of the URL’s was too long for the sidebar. A very usefull CSS property to fix it is word-wrap. You can force long text to wrap in a new line by specifying break-word with the word-wrap property. Word-wrap is supported in IE 5.5+, Firefox 3.5+, and WebKit browsers such as Chrome and Safari.
.break-word {
word-wrap: break-word;
}
















Latest Comments