forms and table formatting

F

Frigett

hello,

in my experience with designing user input forms, using tables for page
formatting, i often have problems where I lose the alignment of the table,
or the table exceeds the visible window horizontally.

are there any "tips or secrets" about form-and-table formats that work?

i know css is moving away from using tables but - frankly speaking - I'm not
"there" yet....

Frigetta
 
A

Adrienne

hello,

in my experience with designing user input forms, using tables for page
formatting, i often have problems where I lose the alignment of the
table, or the table exceeds the visible window horizontally.

are there any "tips or secrets" about form-and-table formats that work?

i know css is moving away from using tables but - frankly speaking -
I'm not "there" yet....

Actually, you can do things very easily with CSS, and not have to use
tables. For instance:

<style type="text/css">
label {display:block; float:left; width:10em; text-align:right;}
input, select, textarea {margin-left:1em;}
fieldset {padding:1em;}
legend {padding:.5em;}
br {clear:both;}
p.submit {text-align:center;}
</style>
</head>
<body>
<form id="cssform" method="post" action="yourscript">
<fieldset><legend>This form uses CSS</legend>
<label for="firstname">First Name: </label> <input type="text"
name="firstname" id="firstname"><br>
<label for="lastname">Last Name: </label> <input type="text"
name="lastname" id="lastname"><br>
<p><input type="submit" value="Go For It!"></p>
</fieldset>
</form>
</body>

You can also look at http://www.intraproducts.com/beta/requiredform.asp
that has some nice things to do server and client side for missing required
information. It is in ASP, but can easily be converted to another
language.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top