We have CSS and html which does not work when we open in IE or Chrome. Text is not center aligned.
However, it works when run via Chrome-> CodePen, Text is center aligned.
<html>
<head>
<style>
div {
  float:left;margin-left:10px;word-wrap:break-word;overflow:hidden;
 width:150px; 
 height:150px;
 line-height: 150px;
 background:red;   
 color: #fff;
}
div p {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
  width: 100%;
  text-align: center;
}
</style>
</head>
<body>
<div>
<p>
hello is the the testhello is the the testhello is the the testhello
  </p>
</div>
</body>
</html>
My local machine Chrome:

 
    