<div class="container">
<div class="normal">
<p>Esternocleidomastoideo</p>
</div>
<p>Con <code>word-break: break-all;</code> e <code>hyphens: auto;</code></p>
<div class="normal hyphenation" lang="es"
<p>Esternocleidomastoideo</p>
</div>
</div>
body {
font-family: sans-serif;
font-size: 16px;
line-height: 1.5;
background: #eee;
color: #333;
}
.container {
width: 80%;
margin: 1em auto;
padding: 1em 5%;
background: #fff;
}
h1, h2 {
margin-bottom: .5em;
}
h1 {
font-size: 2em;
}
h2 {
font-size: 1.6em;
}
p {
margin-bottom: 1em;
}
.normal {
width: 100px;
background: #f1f1f1;
margin-bottom: 10px;
}
.hyphenation {
word-break: break-all;
/* Non standard for webkit */
word-break: break-word; */
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.