title: position in reactjs with css
body: <p>everyone, I am working on Reactjs project, I want to add submit button inside the input field, but I am not able to add, can anyone help me to place submit button inside input field, thanks in advance, my demo code, expected and actual outcome is attached</p>
  
  <p><strong>Reactjs code</strong>      </p>
  
  <pre><code>&lt;div className={styles.subscribeInputContainer}&gt;
                          {I18n.getComponent(
                              (formattedValue) =&gt;
                                  &lt;input
                                      id="subscribeInput"
                                      required={true}
                                      value={this.state.value}
                                      className={styles.subscribeInput}
                                      placeholder={formattedValue}
                                      onKeyPress={(e) =&gt; this.onKeyPress(e)}
                                      onChange={(e) =&gt; this.onEmailChange(e.target.value)}
                                  /&gt;,
                              'footer.your-email-address',
                              {},
                              'Enter Your email address'
                          )}
  
                          &lt;p className={styles.subscribeButton} id="btnId"&gt;
                              &lt;Button variant="primary" className={styles.subscribeIcon} onClick={() =&gt; this.onSubscribe()}&gt;Button&lt;/Button&gt;
                          &lt;/p&gt;
  
                      &lt;/div&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>CSS code</strong></p>
  
  <pre><code>.inputContainer {
     position: relative;
  }
  
  .subscribeIcon {
     position: absolute;
     right: 10px;
  }
  .subscribeInputContainer {
      display: flex;
      flex-flow: row;
      flex: 1;
      font-size: $fontSize-lg;
      color: $color-body;
  }
  </code></pre>
  
  <p>Actual outcome</p>
  
  <p><a href="https://i.stack.imgur.com/csvHg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/csvHg.png" alt="enter image description here"></a></p>
  
  <p>Expected Outcome</p>
  
  <p><a href="https://i.stack.imgur.com/obUXz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/obUXz.png" alt="enter image description here"></a></p>