ReactJS: How can I align form <Field>'s <input> and <button> and <h1> in a row inside a <div>?
<p>I have <code>&lt;button/&gt;</code> and <code>&lt;input/&gt;</code> inside a container. How can I get them to align in the same row, next to each other, and in the middle of the container vertically?</p>

<p>This is what I have so far: </p>

<p><a href="https://i.stack.imgur.com/YzEG3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YzEG3.png" alt="enter image description here"></a></p>

<p>The top black portion is a navigation bar and I want to side-by-side align them in a row, next to each other from left to right, and align them vertically in the middle of the navigation bar:</p>

<p><strong>PLEASE TAKE A LOOK AT EDIT AT THE BOTTOM FOR UPDATED CODE</strong> </p>

<pre><code>       import { Field, reduxForm } from 'redux-form';

       const form = reduxForm({
         form: 'register'
       });

       ...

  &lt;div id="wrapper"&gt;
    &lt;header&gt;
       &lt;div className="container"&gt;
        &lt;h1&gt;
          TESTING
        &lt;/h1&gt;
        &lt;form&gt;
            &lt;Field
              name="email"
              className="form-control"
              component={
                  &lt;div&gt;
                    &lt;input
                      className="form-control"
                      id="input-field"
                      placeholder='Enter Email'
                    /&gt;
                 &lt;/div&gt;
              }
              type="text"
            /&gt;
            &lt;button
              type="submit"
              className="btn"
            &gt;
              Register
            &lt;/button&gt;
          &lt;/form&gt;
        &lt;/div&gt;
    &lt;/header&gt;
  &lt;/div&gt;
</code></pre>

<p>And CSS stylesheet:</p>

<pre><code>#wrapper {
  width: 100%;
  margin: 0 auto;
}

.container {
  display: flex;
  justify-content: center;
}

header {
  width: 100%;
  height: 85px;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: black;
  }
header h1#logo {
  display: inline-block;
  height: 85px;
  line-height: 85px;
  float: left;
  font-size: 25px;
  color: purple;
  font-weight: 500;
}

#input-field {
  background-color: rgba(255,255,255,0.1);
  border-radius: 5px;
  width: 150px;
  height: 40px;
  padding: 5px;
}
</code></pre>

<p><strong>EDIT</strong></p>

<p>Decided to take the Form out but CSS stay the same. How can I flex align the following to achieve what I originally wanted (Would like to have the h1 to the left and text field + button to the right? </p>

<pre><code>  &lt;div id="wrapper"&gt;
    &lt;header&gt;
       &lt;div className="container"&gt;
          &lt;h1&gt;
            TESTING
          &lt;/h1&gt;
          &lt;input
            className="form-control"
            id="input-field"
            placeholder='Enter Email'
          /&gt;
          &lt;button
            type="submit"
            className="btn"
          &gt;
            Register
          &lt;/button&gt;
      &lt;/div&gt;
    &lt;/header&gt;
  &lt;/div&gt;
</code></pre>