HTML CSS examples for CSS Form:input
Input with display:block
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Lorem ipsu</title> <style> div {<!-- ww w. java 2s . c o m--> border:2px solid Chartreuse; padding:6px; } input, form { display:block; width:100%; } </style> </head> <body> <form> <div> <input type="text" name="foo"> </div> </form> </body> </html>