I have an extremely simple flexbox based layout with a div and a footer. The footer has an input box in it. Whenever the keyboard comes up in mobile safari or chrome a small gap is shown betwixt the body and the keyboard. Does anyone know how to remove this horrible gap? 

Please see the follow JS Bin on your device: <http://jsbin.com/rujexadodu/edit?html,css,js,output>

[![Out](https://i.stack.imgur.com/tOov1.png)](https://i.stack.imgur.com/tOov1.png)

Full code

```
  <html>
  <head>
  <title>Test</title>
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=0"/>
  <style type="text/css">

  html {
    margin: 0;
    padding: 0;
  }

  body {
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid pink;
  }

  .container {
    height: 100%;
    display:flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
  }

  .footer {
    height: 30px;
    background-color: lightgray;
    padding: 10px;
    display: flex;
    align-items: center;
  }

  .content {
    flex: 1;
    height: 100%;
    width: 100%;
    padding: 10px;
  }

  input {
    width: 100%;
  }
  </style>
  </head>
  <body>
  <div class="container">
  <div class="content">
    This is the body content.
  </div>
  <div class="footer">
    <input type="text" />
  </div>
  </div>
  </body>
  </html>

```