title: Place label and input field on the same row, with padding
body: <p>I have a label and a text field which I want to be displayed on the same line.</p>
  
  <p>I looked this up here <a href="https://stackoverflow.com/questions/18404003/label-on-the-left-side-instead-above-an-input-field">Label on the left side instead above an input field</a> and changed my code to use <code>form-inline</code>:</p>
  
  <pre><code>&lt;div className="form-group form-inline"&gt;
      &lt;label style={{display: 'margin-right:10px'}}&gt;Category&lt;/label&gt;
      &lt;select className="form-control" value={this.state.selectCategoryValue} onChange={this.handleSelectCat} style={{display:'inline-block'}}&gt;
          &lt;option value="defaultCategory" disabled selected&gt;&lt;/option&gt;
          {categoryDesc}
      &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>However, now there is no padding between the text and the input field, although I tried setting <code>margin-right</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/4qSMH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4qSMH.png" alt="enter image description here"></a></p>
  
  <p>How could I add some padding between them?</p>