Edit in JSFiddle

<h2>Default</h2>
  <div class="article">
    It is a long established fact that a reader will 
    be distracted by the readable content of a page 
    when looking at its layout. The point of using 
    Lorem Ipsum is that it has a more-or-less normal 
    distribution of letters, as opposed to using, 
    making it look like readable English. 
    Many desktop publishing packages and web 
    page editors now use Lorem Ipsum as their 
    default model text, and a search for 'lorem ipsum' 
    will uncover many web sites still in their infancy. 
    Various versions have evolved over the years, 
    sometimes by accident, sometimes on purpose 
    (injected humour and the like).
    hereis long text: weweweweweweweweweweweweqeqweqweqweqweqweqweqweqweqweqwewqeqeqwewqeqwewqeqweqweqweqweqweqweqweqwwqe
  </div>
  <hr/>
  
  <h2>Use CSS word-break</h2>
  <div class="article word-break">
    It is a long established fact that a reader will 
    be distracted by the readable content of a page 
    when looking at its layout. The point of using 
    Lorem Ipsum is that it has a more-or-less normal 
    distribution of letters, as opposed to using, 
    making it look like readable English. 
    Many desktop publishing packages and web 
    page editors now use Lorem Ipsum as their 
    default model text, and a search for 'lorem ipsum' 
    will uncover many web sites still in their infancy. 
    Various versions have evolved over the years, 
    sometimes by accident, sometimes on purpose 
    (injected humour and the like).
    hereis long text: weweweweweweweweweweweweqeqweqweqweqweqweqweqweqweqweqwewqeqeqwewqeqwewqeqweqweqweqweqweqweqweqwwqe
  </div>
  <hr/>
  
  <h2>Using CSS text-overflow</h2>
  <div class="article text-overflow">
    It is a long established fact that a reader will 
    be distracted by the readable content of a page 
    when looking at its layout. The point of using 
    Lorem Ipsum is that it has a more-or-less normal 
    distribution of letters, as opposed to using, 
    making it look like readable English. 
    Many desktop publishing packages and web 
    page editors now use Lorem Ipsum as their 
    default model text, and a search for 'lorem ipsum' 
    will uncover many web sites still in their infancy. 
    Various versions have evolved over the years, 
    sometimes by accident, sometimes on purpose 
    (injected humour and the like).
    hereis long text: weweweweweweweweweweweweqeqweqweqweqweqweqweqweqweqweqwewqeqeqwewqeqwewqeqweqweqweqweqweqweqweqwwqe
  </div>
  
  <hr/>
  
  <h2>Using CSS overflow-wrap or word-wrap</h2>
  <div class="article overflow-wrap">
    It is a long established fact that a reader will 
    be distracted by the readable content of a page 
    when looking at its layout. The point of using 
    Lorem Ipsum is that it has a more-or-less normal 
    distribution of letters, as opposed to using, 
    making it look like readable English. 
    Many desktop publishing packages and web 
    page editors now use Lorem Ipsum as their 
    default model text, and a search for 'lorem ipsum' 
    will uncover many web sites still in their infancy. 
    Various versions have evolved over the years, 
    sometimes by accident, sometimes on purpose 
    (injected humour and the like).
    hereis long text: weweweweweweweweweweweweqeqweqweqweqweqweqweqweqweqweqwewqeqeqwewqeqwewqeqweqweqweqweqweqweqweqwwqe
  </div>
  
  
  <hr/>
  
  <h2>Without specifying hard width property</h2>
  <div class="article">
    <div class="without">
    It is a long established fact that a reader will 
    be distracted by the readable content of a page 
    when looking at its layout. The point of using 
    Lorem Ipsum is that it has a more-or-less normal 
    distribution of letters, as opposed to using, 
    making it look like readable English. 
    Many desktop publishing packages and web 
    page editors now use Lorem Ipsum as their 
    default model text, and a search for 'lorem ipsum' 
    will uncover many web sites still in their infancy. 
    Various versions have evolved over the years, 
    sometimes by accident, sometimes on purpose 
    (injected humour and the like).
    hereis long text: weweweweweweweweweweweweqeqweqweqweqweqweqweqweqweqweqwewqeqeqwewqeqwewqeqweqweqweqweqweqweqweqwwqe
    </div>
  </div>
  
.article{
  width: 500px;
  border: 1px solid blue;
}

.word-break{
  word-break: break-all;
}


.text-overflow{
  overflow: hidden;
  text-overflow: ellipsis;
}

.overflow-wrap{
  overflow-wrap: break-word;
  width: 500px;
}

.without{
  overflow-wrap: break-word;
  /* the following are required for overflow-wrap/word-wrap */
  table-layout: fixed;
  word-break: normal;
  display: table;
  width: 100%;
}