| | |
Web Form
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2007
Posts: 34
Reputation:
Solved Threads: 0
Hello all!
I created a web form, but it isnt I guess to say attractive?
Its a form to enter some information, but the alignment is horrible lookg. Can any one help me?
Thanks!!!!!!!!!
Here is the code...
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>??? Welcomes You!</h1>
<br>
<br>
<form action="feedback.php" method="post">
<p>Title:
<select name="title">
<option selected>" "</option>
<option>Prof</option>
<option>Mr</option>
<option>Mrs</option>
<option>Ms</option>
<option>Dr</option>
<option>Miss</option>
</select>
</p>
First Name:
<input type="text" name="FirstName"><br>
Last Name:
<input type="text" name="LastName"><br>
Address:
<input type="text" name="Address"><br>
Apt/Unit:
<input type="text" name="Apt/Unit"><br>
<br>
City:
<input type="text" name="City"><br>
State:
<input type="text" name="State"><br>
Zip:
<input type="text" name="Zip"><br>
<br>
Email:
<input type="text" name="email"><br>
<br>
Memo:
<textarea name="memo"></textarea>
<br>
<br>
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>
I created a web form, but it isnt I guess to say attractive?
Its a form to enter some information, but the alignment is horrible lookg. Can any one help me?
Thanks!!!!!!!!!
Here is the code...
<html>
<head>
<title>Welcome</title>
</head>
<body>
<h1>??? Welcomes You!</h1>
<br>
<br>
<form action="feedback.php" method="post">
<p>Title:
<select name="title">
<option selected>" "</option>
<option>Prof</option>
<option>Mr</option>
<option>Mrs</option>
<option>Ms</option>
<option>Dr</option>
<option>Miss</option>
</select>
</p>
First Name:
<input type="text" name="FirstName"><br>
Last Name:
<input type="text" name="LastName"><br>
Address:
<input type="text" name="Address"><br>
Apt/Unit:
<input type="text" name="Apt/Unit"><br>
<br>
City:
<input type="text" name="City"><br>
State:
<input type="text" name="State"><br>
Zip:
<input type="text" name="Zip"><br>
<br>
Email:
<input type="text" name="email"><br>
<br>
Memo:
<textarea name="memo"></textarea>
<br>
<br>
<input type="submit" name="submit" value="submit">
</form>
</body>
</html>
•
•
Join Date: Jul 2007
Posts: 8
Reputation:
Solved Threads: 0
Cheap Custom Web Design and Programming freelancers
Computer and Electronics Forum | Video Games Forum
Computer and Electronics Forum | Video Games Forum
•
•
•
•
So you can not use tables for layout????
The problem is that divs don't always work exactly the way you want them to, especially when they are inside other layout tags. I gave up after SIX hours of trying to get a simple three-column set of divs
to line up correctly inside a pair of li tags. It always either dropped one div to a lower area, or took some of the text below the ending li tag and put it on the right of the three divs, or failed to display correctly on one browser while working on the others.
Here is code that fails. Somebody please tell me why. You will note that the set of divs inside the li pair fails, but the ones down below the ul pair work correctly. And IE messes it up differently than FF does. The ONLY difference between the two is that one set is inside the ul list's li pair.
HTML and CSS Syntax (Toggle Plain Text)
<html> <head> <style> .x3col {float: left; margin: none; border: none; padding: none; width: 33%;} </style> </head> <body> <ul> <li><p>Here is the list:</p> <div class="x3col"> <ol> <li>one</li> <li>two</li> <li>three</li> </ol> </div> <div class="x3col"> <ol> <li>four</li> <li>five</li> <li>six</li> <li>seven</li> </ol> </div> <div class="x3col"> <ol> <li>eight</li> <li>nine</li> <li>ten</li> <li>eleven</li> </ol> </div> </li> <li>Here's the end of the list</li> </ul> <p>Here is the next line</p> <p>And down here, it works.</p> <div class="x3col"> <ol> <li>one</li> <li>two</li> <li>three</li> </ol> </div> <div class="x3col"> <ol> <li>four</li> <li>five</li> <li>six</li> <li>seven</li> </ol> </div> <div class="x3col"> <ol> <li>eight</li> <li>nine</li> <li>ten</li> <li>eleven</li> </ol> </div> <p>Here is the next line</p> </body> </html>
Last edited by MidiMagic; Jul 13th, 2007 at 5:56 am.
Daylight-saving time uses more gasoline
•
•
Join Date: Sep 2006
Posts: 37
Reputation:
Solved Threads: 1
The reason the first list gets screwed is because 'none' is not a valid property for the margin and padding attributes, use 0px or just 0 instead 
My gues is that the floated divs in the unordered list cause the 'end of the list' to stick behind it, rather than drop below, so i aplied clear: left to it. Lasty i got rid of the list bullets for the unordered list.
here is the code, it works in both FF and IE

My gues is that the floated divs in the unordered list cause the 'end of the list' to stick behind it, rather than drop below, so i aplied clear: left to it. Lasty i got rid of the list bullets for the unordered list.
here is the code, it works in both FF and IE
html Syntax (Toggle Plain Text)
<html> <head> <style> .x3col { float: left; margin: 0px; padding: 0px; border: none; width: 33%; } .endline { clear:left; } ul { padding: 0px; margin: 0px; list-style: none; } </style> </head> <body> <ul> <li> <p>Here is the list:</p> <div class="x3col"> <ol> <li>one</li> <li>two</li> <li>three</li> </ol> </div> <div class="x3col"> <ol> <li>four</li> <li>five</li> <li>six</li> <li>seven</li> </ol> </div> <div class="x3col"> <ol> <li>eight</li> <li>nine</li> <li>ten</li> <li>eleven</li> </ol> </div> </li> <li class="endline">Here's the end of the list</li> </ul> <p>Here is the next line</p> <p>And down here, it works.</p> <div class="x3col"> <ol> <li>one</li> <li>two</li> <li>three</li> </ol> </div> <div class="x3col"> <ol> <li>four</li> <li>five</li> <li>six</li> <li>seven</li> </ol> </div> <div class="x3col"> <ol> <li>eight</li> <li>nine</li> <li>ten</li> <li>eleven</li> </ol> </div> <p>Here is the next line</p> </body> </html>
Last edited by ¤| battousai |¤; Jul 13th, 2007 at 7:53 am.
There are several problems with your "solution":
1. The books that I use say that "none" is always allowed as a way to remove a style.
2. Changing "none" to "0px" didn't change anything.
3. The clear style is clearly a kludge. The contents of a list element should not have the power to change the way the list itself renders.
4. The clear style fixed the FF display, but not the IE display. But we shouldn't have to do that.
5. I want the bullets in my page.
6. Doing your whole thing still doesn't fix the IE display. The third column still drops under the first.
7. Setting the margin and padding on the ul to 0px removes the bullets on both browsers, even with the list-style part removed. I want the bullets.
The problem is that the div method of making columns is not yet perfected.
1. The books that I use say that "none" is always allowed as a way to remove a style.
2. Changing "none" to "0px" didn't change anything.
3. The clear style is clearly a kludge. The contents of a list element should not have the power to change the way the list itself renders.
4. The clear style fixed the FF display, but not the IE display. But we shouldn't have to do that.
5. I want the bullets in my page.
6. Doing your whole thing still doesn't fix the IE display. The third column still drops under the first.
7. Setting the margin and padding on the ul to 0px removes the bullets on both browsers, even with the list-style part removed. I want the bullets.
The problem is that the div method of making columns is not yet perfected.
Last edited by MidiMagic; Jul 17th, 2007 at 6:04 pm.
Daylight-saving time uses more gasoline
•
•
Join Date: Aug 2007
Posts: 42
Reputation:
Solved Threads: 4
For my forms I use definition lists (<dl>) instead of tables or divs. I put labels in <dt> and input, textarea, option and select in <dd>. And then I use stylesheets to improve it.
This way:
The CSS part:
This way if css fails or is disabled, the form will still mantain a good appearance and usability.
This way:
HTML and CSS Syntax (Toggle Plain Text)
<div id="form"> <form method="post" action="check.php"> <dl> <dt><label for="user">User:</label></dt> <dd><input name="user" type="text" class="text" /></dd> <dt><label for="pass">Pass:</label></dt> <dd><input name="pass" type="password" class="text" /> <input type="submit" name="submit" value="login" class="button" /></dd> </dl> </form> </div>
The CSS part:
HTML and CSS Syntax (Toggle Plain Text)
* { margin: 0; padding: 0; } body { font: 12px/17px Verdana, Arial, sans-serif; color: #111; background-color: #fff; } #form { display: block; margin: 0px auto; width: 320px; } dl { width: 300px; } dt label { font-weight: bold; margin: 10px 0 5px; } input.text { width: 100%; font-size: 14px; color: #000; background: #eee; border: 1px dotted #666; } input.button { float: right; font-size: 14px; color: #000; background: #eee; border: 1px dotted #777; width: 50px; padding: .1em; margin: 15px 0 0; }
This way if css fails or is disabled, the form will still mantain a good appearance and usability.
![]() |
Similar Threads
- Web form that places input into document (ASP.NET)
- Web Form Submission difficulties (HTML and CSS)
- vb to web form (Visual Basic 4 / 5 / 6)
- How to code "tab control' in the web form in ASP.NET / VB.NET ? (ASP.NET)
- Can Visio files be converted into web-form for visual studio ? (VB.NET)
- web form not working please help (ASP.NET)
- duplicate entry through web form into oracle (Python)
- Web Form & Database!!! PLEASE (MS SQL)
Other Threads in the HTML and CSS Forum
- Previous Thread: ntergrating audio to a site?
- Next Thread: The div method for columns doesn't always work
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






