icon vertically center of table header

word-break: break-all;

by Krishna Ananthi

HTML

<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<table style="width:80%">
  <thead>
    <tr>
      <th>
        <div class='filter-container header-container'>
          <div class='header-text'> Name of station Name of station Name of station Name of station </div>
          <div class='icon-right'> <span class="fa fa-sort-asc fa-lg sort-icon "></span><span class="fa fa-sort-desc fa-lg sort-icon  "></span></div>
        </div>
      </th>
      <th>
        <div class='filter-container header-container'>
          <div class='header-text'> lastname</div>
          <div class='icon-right'> <span class="fa fa-sort-asc fa-lg sort-icon "></span><span class="fa fa-sort-desc fa-lg sort-icon  "></span></div>
        </div>
      </th>
      <th>
        <div class='filter-container header-container'>
          <div class='header-text'> Age</div>
          <div class='icon-right'> <span class="fa fa-sort-asc fa-lg sort-icon "></span><span class="fa fa-sort-desc fa-lg sort-icon  "></span></div>
        </div>
      </th>
      <th>
        <div class='filter-container header-container'>
          <div class='header-text'> Address</div>
          <div class='icon-right'> <span class="fa fa-sort-asc fa-lg sort-icon "></span><span class="fa fa-sort-desc fa-lg sort-icon  "></span></div>
        </div>
      </th>
      <th>
        <div class='filter-container header-container'>
          <div class='header-text'> Hobby</div>
          <div class='icon-right'> <span class="fa fa-sort-asc fa-lg sort-icon "></span><span class="fa fa-sort-desc fa-lg sort-icon  "></span></div>
        </div>
      </th>
    </tr>
  </thead>
  <tbody class='scrollContent'>
    <tr>
      <td>Jill</td>
      <td>Smith</td>
      <td>50</td>
      <td>Bangalore</td>
      <td>Playing</td>
    </tr>
    <tr>
      <td>Eve</td>
      <td>Jackson</td>
      <td>94</td>
      <td>Bangalore</td>
      <td>Playing</td>
    </tr>
    <tr>
     ...

CSS

table,
th,
td {
  border: 1px solid black;
  border-collapse: collapse;
}

th,
td {
  padding: 5px;
}

.filter-container {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0px !important;
  margin: 0px !important;
}

.header-container {
  height: 100%;
  vertical-align: middle;
  text-align: center;
  overflow: hidden;
}

.header-text {
  font-size: 22px;
  line-height: 24px;
}

.header-text {
  color: #000000;
  font-weight: normal;
  word-break: break-all;
}

tbody.scrollContent {
  max-height: 100px;
  overflow-x: hidden;
  overflow-y: overlay;
  background-color: white;
}
tbody {
    display: block;
}
.header-text {
  width: 90%;
  float: left;
  text-align: start;
  letter-spacing: 0;
  text-align: left;
}

.icon-right {
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -10px;
}

.sort-icon {
  float: right !important;
  clear: right;
  height: 1px !important;
}

thead,
tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}