I am working on a basic react project. I want to put space between 2 horizontal input fields ( without grid ). Anyhelp will be helpful as I am in learning phase.
The style I am using for fields
.grocery {
padding: 0.25rem;
padding-left: 1rem;
background: var(--clr-grey-10);
border-top-left-radius: var(--radius);
border-bottom-left-radius: var(--radius);
border-color: transparent;
font-size: 1rem;
flex: 1 0 auto;
color: var(--clr-grey-5);
}
The react code snippet:
<div className='form-control'>
<input type='text' name='Principal'className='grocery' placeholder='principal amount' value={name} onChange={(e)=>setName(e.target.value)}/>
<button type='submit' className ='submit-btn'>
{isEditing ? 'edit' :'submit'}
</button>
<input type='text' name='cash inflow'className='grocery' placeholder='cash inflow' value={name} onChange={(e)=>setName(e.target.value)}/>
<button type='submit' className ='submit-btn'>
{isEditing ? 'edit' :'submit'}
</button>
</div>

.groceryto create that extra space you want.groceryand its perfectly reflecting.