+ 4

Is it possible to display several fields input on inline?

I try with the property display of css but that doesn't anything. code html <form> <div> <input type="text" /> <input type="text" /> </div> <div> <input type="text" /> <input type="text" /> </div> <input type="submit" value="Submit"/> <input type="reset" value="Reset"/> </form> I want to place the fields input inline block two by two. CSS code: div input { display: inline-block; }

28th Nov 2017, 11:18 AM
Josué Charles
Josué Charles - avatar
2 Antworten
+ 2
It works. Anyway, you may try add and change the "width" css property: div input { display: inline-block; width: 100px; }
28th Nov 2017, 3:16 PM
Aleksandr
+ 6
Thx Aleksandr!
28th Nov 2017, 3:24 PM
Josué Charles
Josué Charles - avatar