Input with display:block - HTML CSS CSS Form

HTML CSS examples for CSS Form:input

Description

Input with display:block

Demo Code

ResultView the demo in separate window

<!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>

Related Tutorials