Posted By

sebikovacs on 11/08/10


Tagged

form


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tamala73


Single column form


 / Published in: XHTML
 

  1. form br{clear:left;}
  2. label {width: 240px;margin: 0 0 5px;}
  3. input {width: 240px;height: 25px;line-height:25px;margin: 0 0 10px;border:1px solid #333;padding:0 0 0 6px;}
  4. textarea {width: 240px;height: 115px;}
  5. .submit{margin:0;padding:0;width:auto;height:auto;background:none;color:#000;}
  6.  
  7. /*checkbox*/
  8. .checkbox{}
  9. .checkbox label{width:auto;margin:0;padding:0;}
  10. .checkbox input{width:auto;height:auto;margin:0;padding:0;border:0;}
  11. <form action="#" method="post">
  12. <label>Text<span class="error"> Error!</span></label><br />
  13. <input type="text" value="" /><br />
  14. <textarea cols="30" rows="10"></textarea><br />
  15.  
  16. <div class="checkbox"><input type="checkbox" name="" id="" /><label for="">Text</label></div>
  17.  
  18. <input type="submit" class="submit" value="text" />
  19. </form>

Report this snippet  

You need to login to post a comment.