Jan 10, 2018

Removing hyphenated text and word-wrapping via CSS

A simple bit of code to use if you do not like the way your browser hyphenates or word wraps your text. (Note the * selector will apply this CSS to ALL elements on the page, and the !important flag will overwrite any later changes.)


* {
 -webkit-hyphens: none !important;
 -ms-hyphens: none !important;
 -o-hyphens: none !important;
 hyphens: none !important;
}

No comments:

Post a Comment

Thanks for contributing!! Try to keep on topic and please avoid flame wars!!