Center text within div both directions

by greatCar

HTML

<div class="view">
 <div class="cellcenterparent">
    <div class="cellcentercontent">
        <div class="title">Centercontent</div>
    </div>
  </div>
</div>

CSS

.view{
  width:400px;
  height: 400px;
  background-color: #f58323;
}

.cellcenterparent{
  width: 100%;
  height: 100%;
  display: table;
}

.cellcentercontent{
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  margin: 150px;
}

.title{
  font-size: 50px;
  color: white;
}