CSS form


 / Published in: HTML
 

  1. <style type="text/css">
  2. <!--
  3. label,input {
  4. display: block;
  5. width: 150px;
  6. float: left;
  7. margin-bottom: 10px;
  8. }
  9.  
  10. label {
  11. text-align: right;
  12. width: 75px;
  13. padding-right: 20px;
  14. }
  15.  
  16. br {
  17. clear: left;
  18. }-->
  19. <label for="name">Name</label>
  20. <input id="name" name="name">
  21. <br>
  22. <label for="address">Address</label>
  23. <input id="address" name="address">
  24. <br>
  25. <label for="city">City</label>
  26. <input id="city" name="city">
  27. <br>
  28. </form>

Report this snippet  

You need to login to post a comment.