We Recommend

HTML: The Definitive Guide HTML: The Definitive Guide
They teach you that learning HTML is like learning any other language and that reading a book of rules can only take you so far. Readers begin writing what may be their first Web page just two pages into the book's second chapter. From there on, they provide a wide range of HTML coding to allow readers to learn from good examples. The book includes a handy "cheat sheet" of HTML codes for quick reference.


Posted By

damarev on 07/17/06


Tagged


Versions (?)


Who likes this?

26 people have marked this snippet as a favorite

luman
meth
jkochis
trickychicken
clifton
powerkan
mdavie
mountchuck
fayans
Phoenix
dkhawk
jccovey
verucadea
manub
m10
swiggy
vali29
sbbath
benrasmusen
visuallyspun
ds
snucko
gAmUssA
JimiJay
SpinZ
blackabee


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. </style>
  20. <label for="name">Name</label>
  21. <input id="name" name="name">
  22. <label for="address">Address</label>
  23. <input id="address" name="address">
  24. <label for="city">City</label>
  25. <input id="city" name="city">
  26. </form>

Report this snippet 

You need to login to post a comment.