Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Align Form Fields 1

Status
Not open for further replies.

OrWolf

MIS
Mar 19, 2001
291
I have four form fields for a single survey question. Each one has a description preceeding it (See below). Is there a way to get them to line up exactly? I tried using spaces, tabs, and changing the size of the field. If I changed the font to courier I can get it to work since the each character holds the same amount of space, but this really makes my document look cheap. Any ideas?

Company Name _________
Address _________
City _________
 
Tables and align right is the best way:

Code:
<table border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
  <tr>
    <td width=&quot;50%&quot; align=&quot;right&quot;>
      <p align=&quot;right&quot;>text:</td>
    <td width=&quot;50%&quot;>[form field]</td>
  </tr>
  <tr>
    <td width=&quot;50%&quot; align=&quot;right&quot;>texttext:</td>
    <td width=&quot;50%&quot;>[form field]</td>
  </tr>
  <tr>
    <td width=&quot;50%&quot; align=&quot;right&quot;>text111:</td>
    <td width=&quot;50%&quot;>[form field]</td>
  </tr>
</table>
» » » » » »
Mike Barone
FREE and Pro CGI/Perl Scripts

FREE Scripts
 
That did the trick. I knew you can insert tables, but I didn't know that you could insert form fields into a table.

Thanks a lot! :)
 
Using MSFrontPage 2003SP1

I'm trying to use a table with in a form. as I am creating the form everything seems to work ok, I can add form fields and modify them etc. However, once I save the form and then try to bring it back for editing, the dotted line border (which identifies the form area) disappears and page loses it's form properties.

I've tried working with forms without the table and I don't seem to have this same problem. Does anyone have any idea's why this could be happening?
 
Hi MrJbGa,

Sounds like maybe the table properties are wider then the screen width. I generally use 60 or 80% width for my primary table and then slightly smaller for nested tables.

You could always place the form inside the table when it is complete.



Hope I have been of some help,
Micheal Smith

FrontPage Form Tutorials & Form Script Examples
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top