Skip to content

Instantly share code, notes, and snippets.

@astik
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astik/0fc08e8e138f1b4886eb to your computer and use it in GitHub Desktop.
Save astik/0fc08e8e138f1b4886eb to your computer and use it in GitHub Desktop.
word wrap
/**
* word wrap
*/
.container {
background: rgba(2500, 150, 0, 0.5);
padding: 10px;
margin: 0 auto;
width: 180px;
margin:0 auto;
}
.nicely-breaked-word {
-ms-word-break: break-all;
word-break: break-all;
-webkit-hyphens: auto;
-moz-hyphens: auto;
hyphens: auto;
//overflow-wrap: break-word;
//word-wrap: break-word;
}
<!-- content to be placed inside <body>…</body> -->
<div lang="fr">
<div class="container nicely-breaked-word">
Bienvenue sur le nouvel intranet !
</div>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment