<style>
div {
  width: 80px;
  word-break: break-all;
}
.inline-block {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: blue;
}
</style>
<div>some text contentand more and moreand more  and more and some more moreand more more more and more more more more more and this last one.</div>
<div>some <div class=inline-block></div> and moreand more and more<div class=inline-block></div>and more  and more and some more more<div class=inline-block></div>and more more more and more more more more more <div class=inline-block></div>and this last one.</div>
