`
<div>
<div><input /></div>
<div>
<div><input /></div>
<div><input /></div>
<div><input /></div>
<div><input /></div>
<div><input /></div>
</div>
<div><input /></div>
<div><input /></div>
<div><input /></div>
</div>
`
I need to display all input fields one by one and only 4 input fields in one row using the below structure.
2
Answers
I don’t know what you mean one by one, but from what I did understand you could use a
display: flex
in the "inputs line".So in your html you would have to add a class to the div that you want to become the line, like that:
And then in your css:
you can use the flex display with a 25% width