I am trying to display two div side by side using flexbox. My approach is i want to display like
From: input field
To : inputfield
There must be a gap horizonally and vertically between the text and field
I tried:
HTML:
<div class="box">
<div class="innerElements">
<div class="text">
<label>From</label>
<label>To</label>
</div>
<div class="inputField">
<input type="text"></input>
<input type="text"></input>
</div>
</div>
</div>
CSS
.box {
width: auto;
height: 200px;
background-color: red;
}
.innerElements{
display: flex;
flex-direction: column;
}