+ 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; }
2 Respostas
+ 2
It works. Anyway, you may try add and change the "width" css property:
div input {
display: inline-block; width: 100px;
}
+ 6
Thx Aleksandr!