Word break links


/ Published in: CSS
Save to your folder(s)

Stop a link overflowing it's parent's width


Copy this code and paste it in your HTML
  1. #permalink_section
  2. {
  3. white-space: pre-wrap; /* css-3 */
  4. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  5. white-space: -pre-wrap; /* Opera 4-6 */
  6. white-space: -o-pre-wrap; /* Opera 7 */
  7. word-wrap: break-word; /* Internet Explorer 5.5+ */
  8. }

URL: http://stackoverflow.com/questions/5241369/word-wrap-a-link-so-it-doesnt-overflow-its-parent-div-width

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.