Best way to layout in HTML forms?

Posted by Jen on Stack Overflow See other posts from Stack Overflow or by Jen
Published on 2010-05-25T21:02:34Z Indexed on 2010/05/25 21:21 UTC
Read the original article Hit count: 384

Filed under:
|
|
|
|

I want to display an HTML form containing labelled text fields, like this:

      First Name:  [_____________]
       Last Name:  [_____________]
   Date of Birth:  [________]

My obvious approach is to use a <TABLE> and simply place the labels and text fields in its cells, but is there a better way, e.g. a CSS-based approach?

© Stack Overflow or respective owner

Related posts about html

Related posts about css