Posted By

flatearthcomms on 04/02/14


Tagged

html CSS3 ahref


Versions (?)

Word break links


 / Published in: CSS
 

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

Stop a link overflowing it's parent's width

  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. }

Report this snippet  

You need to login to post a comment.