HTML CSS examples for CSS Form:input
Input fields in one line
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> @import url('https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css'); .myField {<!-- ww w .j a va 2 s . c o m--> width:40%; display:inline-block; } .mySubmit { width:20%; display:inline block; } .myContainer { width:71%; margin:auto; text-align:center; } </style> </head> <body> <div class="row"> <div class="col-lg-4 col-lg-offset-4"> <div class="form-group myContainer"> <input name="Test1" type="text" class="form-control myField" id="test1"> <input name="Test2" type="text" class="form-control myField" id="test2"> <button name="TestSubmit" type="submit" class="btn btn-primary mySubmit">Lorem </button> </div> </div> <!-- col-lg-4 col close --> </div> <!-- row close --> </body> </html>