You are looking for word-break: break-all;
Here is an example. I put the background as black, so you can see where it breaks: JS Fiddle
HTML
<div>iama verylongwordthathasaspace yehey</div>
CSS
div {
width: 120px;
word-break: break-all;
background: black;
color: white;
}
Source: CSS-Tricks: Word-break