Preventing string break-out from container

Useful tip outlined on Smashing Magazine by Chris Coyier on preventing text from breaking out of containers.

.prevent-text-breakouts {
  -ms-word-break: break-all;
      word-break: break-all;
      word-break: break-word;
  -webkit-hyphens: auto;
     -moz-hyphens: auto;
          hyphens: auto;
}

Leave a Reply

Your email address will not be published. Required fields are marked *