"height:100%" and "align-content: center" are not working in css flexbox.
For below code, can someone please suggest how to align child element vertically?
body {
    background-color: #eee;
}
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 100%;
    text-align: center;
    background-color: rgb(8, 8, 119);
}
.child {
    background-color: green;
    height: 100%;
    color: #fff;
  }<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Flexbox</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <div class="container">
      <div class="child">
        SkillsEnabled
      </div>
    </div>
  </body>
</html> 
     
    