Here is how I made single line ‘from’ from you code:
<div className="Search">
<form class="form-inline">
<label> Driver ID:</label>
<input name="driverID" />
<label> Day:</label>
<DatePicker />
<input type="submit" value="Search" />
</form>
</div>
Then at the top of this file I added:
import "./App.css"; //App.css is name of the css file.
Here is code in my App.css:
.form-inline {
display: flex;
flex-flow: row wrap;
align-items: center;
}
This made sure that all the inputs, labels and buttons remain in the first line.