Re: Forms and alignment

Guido.van.Rossum@cwi.nl
Sun, 29 May 1994 08:35:14 +0200


Message-Id: <9405290635.AA08174=guido@voorn.cwi.nl>
To: KASPER@idi.oclc.org
Cc: Multiple recipients of list <www-html@www0.cern.ch>
Subject: Re: Forms and alignment 
In-Reply-To: Your message of "Sun, 29 May 1994 06:03:59 MDT."
             <9404267699.AA769980508@INTERNET.IDI.OCLC.ORG> 
From: Guido.van.Rossum@cwi.nl
Date: Sun, 29 May 1994 08:35:14 +0200

> Can I align all the text boxes so they all start on the same
> character position? Example:

> Client:      XXXXXXXXX
> Entry Date:  XXXXXXXXX
> Notes:       XXXXXXXXX

> I have read where in HTML blanks are insignificant. I also tried the
> <pre> (preformatted text> markup, however my boxes are placed on the
> following line.

Yet, using <PRE> is the solution.  Try formatting your input like
this:

<FORM ...>
<PRE>
Client:       <INPUT NAME=client SIZE=40>
Entry Date:   <INPUT NAME=entry_date SIZE=40>
Notes:        <INPUT NAME=notes SIZE=40>
</PRE>
</FORM>

At least it works for me with Mosaic 2.4.

Note that if the <INPUT ...> tags get uncomfortably long you can break
them into multiple lines, e.g.

<INPUT
NAME=client
SIZE=40
VALUE="foobar"
>

--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
URL:  <http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>