Friday 27 February 2015

Prevent Long URL’s From Breaking Out of Container


Allow long words to be able to break and wrap onto the next line:

p.test {
    word-wrap: break-word;
}

Syntaxword-wrap: normal|break-word|initial|inherit;

A more robust browser support, you'll need more
-ms-word-break: break-all;
/* Be VERY careful with this, breaks normal words wh_erever */ 
word-break: break-all; 
/* Non standard for webkit */ 
word-break: break-word; 
-webkit-hyphens: auto; 
-moz-hyphens: auto; 
hyphens: auto;



Newer Post
Previous
This is the last post.

0 comments:

Post a Comment

Copyright © 2012 Core CSS All Right Reserved