easy form layout question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
How do I get a label to be on top of a text field?

<label>Login:<input type="text" name="login"></label>
<label>Password:<input type="password" name="password"></label>

generates this...

Login:textbox Password:textbox

I want...

Login:      Password:
textbox     textbox

Thanks...  CM..

Re: easy form layout question

mouac01 wrote:

Quoted text here. Click to load it

<style type="text/css">
  FORM DIV.lp {
    width: 47%;
    float: left;
    width: 85%;

<form action="blah" method="POST">
  <div class="lp">
    <input type="text" name="login"></label>
  <div class="lp">
    <input type="password" name="password"></label>

Toby A Inkster BSc (Hons) ARCS
Contact Me  ~ http://tobyinkster.co.uk/contact

Site Timeline