p{ width: 200px; border: solid 1px grey; } .break-word{ word-wrap: break-word; } .break-all{ word-break: break-all; }
<p> Oooohhh.AslongaswegoteachotherWegottheworldspinninright inourhands. </p> <br /> <p class="break-all"> Oooohhh. As longaswegoteachother. Wegottheworldspinninright inourhands. </p> <br /> <p class="break-word"> Oooohhh. As longaswegoteachother. Wegottheworldspinninright inourhands. </p>