Edit in JSFiddle

<div class="wrapper">
  <div>element1</div>
  <div>element2</div>
  <div>element3</div>
</div>
.wrapper{
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: justify;
  border: 1px solid #000;
}
  .wrapper:after{
    position: relative;
    display: inline-block;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    vertical-align: top;
    content: '';
  }
  .wrapper>div{
    position: relative;
    display: inline-block;
    width: 25%;
    height: auto;
    box-sizing: border-box;
    text-align: left;
    vertical-align: top;
    border: 1px solid #ff0000;
    text-align: center;
    line-height: 50px;
  }